Class: PokeApi::ContestType
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::ContestType
- Defined in:
- lib/poke_api/contest_type.rb
Overview
ContestType object handling all data fetched from /contest-type
Instance Attribute Summary collapse
-
#berry_flavor ⇒ Object
readonly
Returns the value of attribute berry_flavor.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ ContestType
constructor
A new instance of ContestType.
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) ⇒ ContestType
Returns a new instance of ContestType.
7 8 9 |
# File 'lib/poke_api/contest_type.rb', line 7 def initialize(data) assign_data(data) end |
Instance Attribute Details
#berry_flavor ⇒ Object (readonly)
Returns the value of attribute berry_flavor.
4 5 6 |
# File 'lib/poke_api/contest_type.rb', line 4 def berry_flavor @berry_flavor end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/contest_type.rb', line 4 def names @names end |