Class: PokeApi::VersionGroup

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/version_group.rb

Overview

VersionGroup object handling all data fetched from /version_group

Instance Attribute Summary collapse

Attributes inherited from NamedApiResource

#id, #name, #url

Instance Method Summary collapse

Methods inherited from NamedApiResource

#get

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

#generationObject (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_methodsObject (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

#orderObject (readonly)

Returns the value of attribute order.



4
5
6
# File 'lib/poke_api/version_group.rb', line 4

def order
  @order
end

#pokedexesObject (readonly)

Returns the value of attribute pokedexes.



4
5
6
# File 'lib/poke_api/version_group.rb', line 4

def pokedexes
  @pokedexes
end

#regionsObject (readonly)

Returns the value of attribute regions.



4
5
6
# File 'lib/poke_api/version_group.rb', line 4

def regions
  @regions
end

#versionsObject (readonly)

Returns the value of attribute versions.



4
5
6
# File 'lib/poke_api/version_group.rb', line 4

def versions
  @versions
end