rdavid1099/poke-api-v2

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  module Common
    # Effect object handling lists of effects and languages
    class Effect
      attr_reader :effect,
                  :language

      def initialize(data)
        @effect = data[:effect]
        @language = Utility::Language.new(data[:language])
      end
    end
  end
end