Class: ODDB::Remote::GalenicForm

Inherits:
Object show all
Defined in:
src/remote/galenic_form.rb

Instance Method Summary (collapse)

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from ODDB::Remote::Object

Instance Method Details

- (Boolean) equivalent_to?(other)

Returns:

  • (Boolean)


11
12
13
14
15
# File 'src/remote/galenic_form.rb', line 11

def equivalent_to?(other)      
  other && (other.has_description?(@remote.description.de) \
    || (galenic_group && \
        galenic_group.equivalent_to?(other.galenic_group)))
end

- (Object) galenic_group



16
17
18
19
20
# File 'src/remote/galenic_form.rb', line 16

def galenic_group
  @group ||= if(group = @remote.group)
               Remote::GalenicGroup.new(group)
             end
end