Class: PokeApi::Move::ContestComboDetail
- Inherits:
-
Object
- Object
- PokeApi::Move::ContestComboDetail
- Includes:
- AssignmentHelpers
- Defined in:
- lib/poke_api/move/contest_combo_detail.rb
Overview
ContestComboDetail object handling all data from move
Instance Attribute Summary collapse
-
#use_after ⇒ Object
readonly
Returns the value of attribute use_after.
-
#use_before ⇒ Object
readonly
Returns the value of attribute use_before.
Instance Method Summary collapse
-
#initialize(data) ⇒ ContestComboDetail
constructor
A new instance of ContestComboDetail.
Methods included from AssignmentHelpers
assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign
Constructor Details
#initialize(data) ⇒ ContestComboDetail
Returns a new instance of ContestComboDetail.
10 11 12 13 |
# File 'lib/poke_api/move/contest_combo_detail.rb', line 10 def initialize(data) @use_before = assign_list(data: data[:use_before]) @use_after = assign_list(data: data[:use_after]) end |
Instance Attribute Details
#use_after ⇒ Object (readonly)
Returns the value of attribute use_after.
7 8 9 |
# File 'lib/poke_api/move/contest_combo_detail.rb', line 7 def use_after @use_after end |
#use_before ⇒ Object (readonly)
Returns the value of attribute use_before.
7 8 9 |
# File 'lib/poke_api/move/contest_combo_detail.rb', line 7 def use_before @use_before end |