Class: ODDB::Remote::Drugs::Substance
- Inherits:
-
Object
- Object
- Object
- ODDB::Remote::Drugs::Substance
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
Instance Method Details
#<=>(other) ⇒ Object
14
15
16
|
# File 'lib/oddb/remote/drugs/substance.rb', line 14
def <=>(other)
name <=> other.name
end
|
11
12
13
|
# File 'lib/oddb/remote/drugs/substance.rb', line 11
def name
@name ||= ODDB::Util::Multilingual.new(:de => @remote.de)
end
|