Class: ODDB::VaccinePlugin::ParsedActiveAgent

Inherits:
Object
  • Object
show all
Defined in:
src/plugin/vaccines.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) dose

Returns the value of attribute dose



115
116
117
# File 'src/plugin/vaccines.rb', line 115

def dose
  @dose
end

- (Object) substance

Returns the value of attribute substance



115
116
117
# File 'src/plugin/vaccines.rb', line 115

def substance
  @substance
end

- (Object) unit

Returns the value of attribute unit



115
116
117
# File 'src/plugin/vaccines.rb', line 115

def unit
  @unit
end

Instance Method Details

- (Object) data



116
117
118
119
120
121
# File 'src/plugin/vaccines.rb', line 116

def data
  {
    :substance =>  @substance,
    :dose        =>  [@dose, @unit],
  }
end