Class: Timeline::InitRecord

Inherits:
Object
  • Object
show all
Defined in:
service/showback.rb

Overview

InitRecord class to put into the beginning of the Timeline to make it easier to work with deltas

Instance Method Summary collapse

Constructor Details

#initialize(time, state) ⇒ InitRecord

Just saves given time and state



62
63
64
# File 'service/showback.rb', line 62

def initialize time, state
  @time, @state = time, state
end

Instance Method Details

#mod(st) ⇒ Object

Merges init state into state



72
73
74
# File 'service/showback.rb', line 72

def mod st
  st.merge! @state
end

#tsObject

Returns @time



67
68
69
# File 'service/showback.rb', line 67

def ts
  @time
end