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