Class: TestOuwerkerkPlugin::StubDose

Inherits:
ODDB::Dose show all
Defined in:
test/test_plugin/ouwerkerk.rb

Constant Summary

Constants inherited from ODDB::Dose

DISABLE_DIFF, EXPORT_PROPERTIES

Constants included from ODDB::OddbYaml

EXPORT_PROPERTIES, YAML_URI

Constants inherited from Quanty

RadianUnit, Self

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ODDB::Dose

#*, #**, #+, #-, #/, #<=>, from_quanty, #scale, #to_f, #to_i, #to_s, #to_yaml, #want

Methods included from ODDB::OddbYaml

#to_yaml_properties, #to_yaml_type

Methods inherited from Quanty

#*, #**, #+, #+@, #-, #-@, #/, #<, #<=, #<=>, #==, #>, #>=, #adjust, #coerce, #inspect, #to_f, #to_s, #want

Constructor Details

- (StubDose) initialize(qty, unit)

A new instance of StubDose



47
48
49
# File 'test/test_plugin/ouwerkerk.rb', line 47

def initialize(qty, unit)
  @qty, @unit = qty, unit
end

Instance Attribute Details

- (Object) qty (readonly)

Returns the value of attribute qty



46
47
48
# File 'test/test_plugin/ouwerkerk.rb', line 46

def qty
  @qty
end

- (Object) unit (readonly)

Returns the value of attribute unit



46
47
48
# File 'test/test_plugin/ouwerkerk.rb', line 46

def unit
  @unit
end