Class: TimeArray::TimeArray::TimeAndValue

Inherits:
Object
  • Object
show all
Defined in:
lib/time_array/time_array.rb

Overview

Used by each method

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#timeObject (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

#valueObject (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