Class: PlaylyfeClient::V2::Action

Inherits:
Action
  • Object
show all
Defined in:
lib/playlyfe_client/v2/action.rb

Instance Attribute Summary collapse

Attributes inherited from Action

#game

Instance Method Summary collapse

Methods inherited from Action

all, #apply_rewards_on_scores, #play_by

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def name
  @name
end

#rewardsObject (readonly)

Returns the value of attribute rewards.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def rewards
  @rewards
end

#times_playedObject (readonly)

Returns the value of attribute times_played.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def times_played
  @times_played
end

#variablesObject (readonly)

Returns the value of attribute variables.



6
7
8
# File 'lib/playlyfe_client/v2/action.rb', line 6

def variables
  @variables
end

Instance Method Details

#required_variablesObject



8
9
10
# File 'lib/playlyfe_client/v2/action.rb', line 8

def required_variables
  @required_variables||=variables.select {|v| v["required"]}
end