Class: PokeApi::ContestEffect
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::ContestEffect
- Defined in:
- lib/poke_api/contest_effect.rb
Overview
ContestEffect object handling all data fetched from /contest-effect
Instance Attribute Summary collapse
-
#appeal ⇒ Object
readonly
Returns the value of attribute appeal.
-
#effect_entries ⇒ Object
readonly
Returns the value of attribute effect_entries.
-
#flavor_text_entries ⇒ Object
readonly
Returns the value of attribute flavor_text_entries.
-
#jam ⇒ Object
readonly
Returns the value of attribute jam.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ ContestEffect
constructor
A new instance of ContestEffect.
Methods inherited from NamedApiResource
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
#appeal ⇒ Object (readonly)
Returns the value of attribute appeal.
4 5 6 |
# File 'lib/poke_api/contest_effect.rb', line 4 def appeal @appeal end |
#effect_entries ⇒ Object (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_entries ⇒ Object (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 |
#jam ⇒ Object (readonly)
Returns the value of attribute jam.
4 5 6 |
# File 'lib/poke_api/contest_effect.rb', line 4 def jam @jam end |