Class: ODDB::Remote::Drugs::Atc
- Defined in:
- lib/oddb/remote/drugs/atc.rb
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
- #ddds(administration) ⇒ Object
-
#initialize(*args) ⇒ Atc
constructor
A new instance of Atc.
- #interesting? ⇒ Boolean
- #name ⇒ Object
Methods inherited from Object
Constructor Details
#initialize(*args) ⇒ Atc
Returns a new instance of Atc.
13 14 15 16 |
# File 'lib/oddb/remote/drugs/atc.rb', line 13 def initialize *args super @ddds = {} end |
Instance Method Details
#ddds(administration) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/oddb/remote/drugs/atc.rb', line 20 def ddds(administration) @ddds[administration] ||= @remote.ddds.inject([]) { |memo, (roa, ddd)| memo.push ddd if roa == administration memo } end |
#interesting? ⇒ Boolean
26 27 28 |
# File 'lib/oddb/remote/drugs/atc.rb', line 26 def interesting? false end |