Class: ODDB::Remote::Drugs::GalenicForm

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/remote/drugs/galenic_form.rb

Instance Attribute Summary

Attributes inherited from Object

#remote, #source

Instance Method Summary collapse

Methods inherited from Object

delegate, #initialize, #uid

Constructor Details

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

Instance Method Details

#descriptionObject



13
14
15
# File 'lib/oddb/remote/drugs/galenic_form.rb', line 13

def description
  @description ||= ODDB::Util::Multilingual.new(:de => @remote.de)
end

#groupObject



16
17
18
# File 'lib/oddb/remote/drugs/galenic_form.rb', line 16

def group
  @group ||= ODDB::Drugs::GalenicGroup.find_by_name(groupname)
end

#groupnameObject



19
20
21
# File 'lib/oddb/remote/drugs/galenic_form.rb', line 19

def groupname
  @groupname ||= @remote && @remote.galenic_group.de
end