Class: Timeline::InitRecord
- Inherits:
-
Object
- Object
- Timeline::InitRecord
- 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
-
#initialize(time, state) ⇒ InitRecord
constructor
Just saves given time and state.
-
#mod(st) ⇒ Object
Merges init state into state.
-
#ts ⇒ Object
Returns @time.
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 |
#ts ⇒ Object
Returns @time
67 68 69 |
# File 'service/showback.rb', line 67 def ts @time end |