Class: PokeApi::VersionGroup
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::VersionGroup
- Defined in:
- lib/poke_api/version_group.rb
Overview
VersionGroup object handling all data fetched from /version_group
Instance Attribute Summary collapse
-
#generation ⇒ Object
readonly
Returns the value of attribute generation.
-
#move_learn_methods ⇒ Object
readonly
Returns the value of attribute move_learn_methods.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#pokedexes ⇒ Object
readonly
Returns the value of attribute pokedexes.
-
#regions ⇒ Object
readonly
Returns the value of attribute regions.
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ VersionGroup
constructor
A new instance of VersionGroup.
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) ⇒ VersionGroup
Returns a new instance of VersionGroup.
11 12 13 |
# File 'lib/poke_api/version_group.rb', line 11 def initialize(data) assign_data(data) end |
Instance Attribute Details
#generation ⇒ Object (readonly)
Returns the value of attribute generation.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def generation @generation end |
#move_learn_methods ⇒ Object (readonly)
Returns the value of attribute move_learn_methods.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def move_learn_methods @move_learn_methods end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def order @order end |
#pokedexes ⇒ Object (readonly)
Returns the value of attribute pokedexes.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def pokedexes @pokedexes end |
#regions ⇒ Object (readonly)
Returns the value of attribute regions.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def regions @regions end |
#versions ⇒ Object (readonly)
Returns the value of attribute versions.
4 5 6 |
# File 'lib/poke_api/version_group.rb', line 4 def versions @versions end |