Class: PokeApi::Move::ContestComboDetail

Inherits:
Object
  • Object
show all
Includes:
AssignmentHelpers
Defined in:
lib/poke_api/move/contest_combo_detail.rb

Overview

ContestComboDetail object handling all data from move

Instance Attribute Summary collapse

Instance Method Summary collapse

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_afterObject (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_beforeObject (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