Class: GameRocket::Action
- Inherits:
-
Object
- Object
- GameRocket::Action
- Defined in:
- lib/gamerocket/action.rb
Instance Attribute Summary collapse
-
#dynProp ⇒ Object
Returns the value of attribute dynProp.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#secured ⇒ Object
Returns the value of attribute secured.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway, attributes) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(gateway, attributes) ⇒ Action
Returns a new instance of Action.
6 7 8 9 10 11 12 |
# File 'lib/gamerocket/action.rb', line 6 def initialize(gateway, attributes) @gateway = gateway if !attributes.nil? set_instance_variables_from_hash(attributes) if !attributes.nil? self.dynProp = attributes[:dynProp].nil ? attributes[:dynProp] : {} end end |
Instance Attribute Details
#dynProp ⇒ Object
Returns the value of attribute dynProp.
4 5 6 |
# File 'lib/gamerocket/action.rb', line 4 def dynProp @dynProp end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/gamerocket/action.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/gamerocket/action.rb', line 4 def name @name end |
#ref ⇒ Object
Returns the value of attribute ref.
4 5 6 |
# File 'lib/gamerocket/action.rb', line 4 def ref @ref end |
#secured ⇒ Object
Returns the value of attribute secured.
4 5 6 |
# File 'lib/gamerocket/action.rb', line 4 def secured @secured end |
Class Method Details
._new(*args) ⇒ Object
22 23 24 |
# File 'lib/gamerocket/action.rb', line 22 def self._new(*args) self.new *args end |
.find(id) ⇒ Object
14 15 16 |
# File 'lib/gamerocket/action.rb', line 14 def self.find(id) Configuration.gateway.action.find(id) end |
.run(id, attributes) ⇒ Object
18 19 20 |
# File 'lib/gamerocket/action.rb', line 18 def self.run(id, attributes) Configuration.gateway.action.run(id, attributes) end |