rdavid1099/poke-api-v2

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  module Common
    # Name object handling lists of names and languages
    class Name
      attr_reader :name,
                  :language

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