Class: Openra::Replays::OrderDecorator

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/openra/replays/order_decorator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order, client_index, frame) ⇒ OrderDecorator

Returns a new instance of OrderDecorator.



8
9
10
11
12
# File 'lib/openra/replays/order_decorator.rb', line 8

def initialize(order, client_index, frame)
  @client_index = client_index
  @frame = frame
  super(order)
end

Instance Attribute Details

#client_indexObject (readonly)

Returns the value of attribute client_index.



6
7
8
# File 'lib/openra/replays/order_decorator.rb', line 6

def client_index
  @client_index
end

#frameObject (readonly)

Returns the value of attribute frame.



6
7
8
# File 'lib/openra/replays/order_decorator.rb', line 6

def frame
  @frame
end