Class: PokeApi::Common::VersionGameIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/poke_api/common/version_game_index.rb

Overview

VersionGameIndex object handling lists of version_details relating to game_index and version

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ VersionGameIndex

Returns a new instance of VersionGameIndex.



9
10
11
12
# File 'lib/poke_api/common/version_game_index.rb', line 9

def initialize(data)
  @game_index = data[:game_index]
  @version = PokeApi::Version.new(data[:version])
end

Instance Attribute Details

#game_indexObject (readonly)

Returns the value of attribute game_index.



6
7
8
# File 'lib/poke_api/common/version_game_index.rb', line 6

def game_index
  @game_index
end

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/poke_api/common/version_game_index.rb', line 6

def version
  @version
end