Class: TimeArray::Compact
- Inherits:
-
Object
- Object
- TimeArray::Compact
- Defined in:
- lib/time_array/compactor.rb
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
-
#v ⇒ Object
(also: #values, #array)
readonly
Returns the value of attribute v.
Instance Method Summary collapse
-
#initialize(v, unit) ⇒ Compact
constructor
A new instance of Compact.
Constructor Details
#initialize(v, unit) ⇒ Compact
Returns a new instance of Compact.
6 7 8 9 |
# File 'lib/time_array/compactor.rb', line 6 def initialize(v, unit) @v = v @unit = unit end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
5 6 7 |
# File 'lib/time_array/compactor.rb', line 5 def unit @unit end |
#v ⇒ Object (readonly) Also known as: values, array
Returns the value of attribute v.
5 6 7 |
# File 'lib/time_array/compactor.rb', line 5 def v @v end |