rdavid1099/poke-api-v2

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module PokeApi
  module Common
    # Description object handling lists of descriptions and languages
    class Description
      attr_reader :description,
                  :language

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