Class: Snapshot
- Inherits:
-
Object
- Object
- Snapshot
- Defined in:
- lib/snapshot/unpacker.rb
Instance Attribute Summary collapse
-
#game_tick ⇒ Object
Returns the value of attribute game_tick.
-
#items ⇒ Object
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(items) ⇒ Snapshot
constructor
A new instance of Snapshot.
Constructor Details
#initialize(items) ⇒ Snapshot
Returns a new instance of Snapshot.
26 27 28 29 |
# File 'lib/snapshot/unpacker.rb', line 26 def initialize(items) @game_tick = 0 @items = items end |
Instance Attribute Details
#game_tick ⇒ Object
Returns the value of attribute game_tick.
24 25 26 |
# File 'lib/snapshot/unpacker.rb', line 24 def game_tick @game_tick end |
#items ⇒ Object
Returns the value of attribute items.
24 25 26 |
# File 'lib/snapshot/unpacker.rb', line 24 def items @items end |