Class: ODDB::Remote::Drugs::Substance

Inherits:
Object
  • Object
show all
Defined in:
lib/oddb/remote/drugs/substance.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

#<=>(other) ⇒ Object



14
15
16
# File 'lib/oddb/remote/drugs/substance.rb', line 14

def <=>(other)
  name <=> other.name
end

#nameObject



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

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