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