rdavid1099/poke-api-v2

View on GitHub
lib/poke_api/common/version_game_index.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  module Common
    # VersionGameIndex object handling lists of version_details
    # relating to game_index and version
    class VersionGameIndex
      attr_reader :game_index,
                  :version

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