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