rdavid1099/poke-api-v2

View on GitHub
lib/poke_api/nature/nature_stat_change.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  class Nature
    # NatureStatChange object handling all data fetched from /nature pokeathlon_stat_changes
    class NatureStatChange
      attr_reader :max_change,
                  :pokeathlon_stat

      def initialize(data)
        @max_change = data[:max_change]
        @pokeathlon_stat = PokeathlonStat.new(data[:pokeathlon_stat])
      end
    end
  end
end