Class: Postmen::Weight
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options) ⇒ Weight
constructor
A new instance of Weight.
Methods included from Common
Constructor Details
#initialize(options) ⇒ Weight
Returns a new instance of Weight.
8 9 10 11 |
# File 'lib/postmen/weight.rb', line 8 def initialize() @value = [:value] @unit = [:unit] end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
5 6 7 |
# File 'lib/postmen/weight.rb', line 5 def unit @unit end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/postmen/weight.rb', line 5 def value @value end |