rdavid1099/poke-api-v2

View on GitHub
lib/poke_api/berry_flavor/flavor_berry_map.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  class BerryFlavor
    # FlavorBerryMap object handling all data fetched from /berry-flavor berries
    class FlavorBerryMap
      attr_reader :berry,
                  :potency

      def initialize(data)
        @berry = Berry.new(data[:berry])
        @potency = data[:potency]
      end
    end
  end
end