Class: ODDB::Remote::Drugs::Unit

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

Instance Attribute Summary collapse

Attributes inherited from Object

#remote, #source

Instance Method Summary collapse

Methods inherited from Object

delegate, #uid

Constructor Details

#initialize(source, name) ⇒ Unit

Returns a new instance of Unit.



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

def initialize(source, name)
  @name = Util::Multilingual.new(:de => name)
  super
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/oddb/remote/drugs/unit.rb', line 11

def name
  @name
end