Class: PokeApi::ContestEffect

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/contest_effect.rb

Overview

ContestEffect object handling all data fetched from /contest-effect

Instance Attribute Summary collapse

Attributes inherited from NamedApiResource

#id, #name, #url

Instance Method Summary collapse

Methods inherited from NamedApiResource

#get

Methods included from AssignmentHelpers

assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign

Constructor Details

#initialize(data) ⇒ ContestEffect

Returns a new instance of ContestEffect.



9
10
11
# File 'lib/poke_api/contest_effect.rb', line 9

def initialize(data)
  assign_data(data)
end

Instance Attribute Details

#appealObject (readonly)

Returns the value of attribute appeal.



4
5
6
# File 'lib/poke_api/contest_effect.rb', line 4

def appeal
  @appeal
end

#effect_entriesObject (readonly)

Returns the value of attribute effect_entries.



4
5
6
# File 'lib/poke_api/contest_effect.rb', line 4

def effect_entries
  @effect_entries
end

#flavor_text_entriesObject (readonly)

Returns the value of attribute flavor_text_entries.



4
5
6
# File 'lib/poke_api/contest_effect.rb', line 4

def flavor_text_entries
  @flavor_text_entries
end

#jamObject (readonly)

Returns the value of attribute jam.



4
5
6
# File 'lib/poke_api/contest_effect.rb', line 4

def jam
  @jam
end