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