Class: TimeArray::TimeArray::TimeAndValue
- Inherits:
-
Object
- Object
- TimeArray::TimeArray::TimeAndValue
- Defined in:
- lib/time_array/time_array.rb
Overview
Used by each method
Instance Attribute Summary collapse
-
#time ⇒ Object
(also: #datetime)
readonly
Returns the value of attribute time.
-
#value ⇒ Object
(also: #v)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(time, value) ⇒ TimeAndValue
constructor
A new instance of TimeAndValue.
Constructor Details
#initialize(time, value) ⇒ TimeAndValue
14 15 16 17 |
# File 'lib/time_array/time_array.rb', line 14 def initialize(time, value) @time = time @value = value end |
Instance Attribute Details
#time ⇒ Object (readonly) Also known as: datetime
Returns the value of attribute time.
13 14 15 |
# File 'lib/time_array/time_array.rb', line 13 def time @time end |
#value ⇒ Object (readonly) Also known as: v
Returns the value of attribute value.
13 14 15 |
# File 'lib/time_array/time_array.rb', line 13 def value @value end |