Class: Quantity
- Inherits:
-
Object
- Object
- Quantity
- Defined in:
- lib/catlogic/quantity.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(quantity) ⇒ Quantity
constructor
A new instance of Quantity.
- #opposite ⇒ Object
Constructor Details
#initialize(quantity) ⇒ Quantity
Returns a new instance of Quantity.
4 5 6 |
# File 'lib/catlogic/quantity.rb', line 4 def initialize(quantity) @label = quantity end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
2 3 4 |
# File 'lib/catlogic/quantity.rb', line 2 def label @label end |