Class: Openra::Replays::OrderDecorator
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Openra::Replays::OrderDecorator
- Defined in:
- lib/openra/replays/order_decorator.rb
Instance Attribute Summary collapse
-
#client_index ⇒ Object
readonly
Returns the value of attribute client_index.
-
#frame ⇒ Object
readonly
Returns the value of attribute frame.
Instance Method Summary collapse
-
#initialize(order, client_index, frame) ⇒ OrderDecorator
constructor
A new instance of OrderDecorator.
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_index ⇒ Object (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 |
#frame ⇒ Object (readonly)
Returns the value of attribute frame.
6 7 8 |
# File 'lib/openra/replays/order_decorator.rb', line 6 def frame @frame end |