Class: PokeApi::Common::VersionGameIndex
- Inherits:
-
Object
- Object
- PokeApi::Common::VersionGameIndex
- 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
-
#game_index ⇒ Object
readonly
Returns the value of attribute game_index.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(data) ⇒ VersionGameIndex
constructor
A new instance of VersionGameIndex.
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_index ⇒ Object (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 |
#version ⇒ Object (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 |