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

#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



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

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

#groupObject



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

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

#groupnameObject



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

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