Class: Snapshot

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tickObject

Returns the value of attribute game_tick.



24
25
26
# File 'lib/snapshot/unpacker.rb', line 24

def game_tick
  @game_tick
end

#itemsObject

Returns the value of attribute items.



24
25
26
# File 'lib/snapshot/unpacker.rb', line 24

def items
  @items
end