Class: Valuevaluevalue::Unit
- Inherits:
-
Object
- Object
- Valuevaluevalue::Unit
- Defined in:
- lib/valuevaluevalue/unit.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#abbreviation ⇒ Object
Returns the value of attribute abbreviation.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, abbreviation) ⇒ Unit
constructor
A new instance of Unit.
Constructor Details
#initialize(name, abbreviation) ⇒ Unit
Returns a new instance of Unit.
7 8 9 10 |
# File 'lib/valuevaluevalue/unit.rb', line 7 def initialize(name, abbreviation) @name = name @abbreviation = abbreviation end |
Instance Attribute Details
#abbreviation ⇒ Object
Returns the value of attribute abbreviation.
5 6 7 |
# File 'lib/valuevaluevalue/unit.rb', line 5 def abbreviation @abbreviation end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/valuevaluevalue/unit.rb', line 5 def name @name end |