jalyna/oakdex-pokedex

View on GitHub
lib/oakdex/pokedex/type.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'oakdex/pokedex/base'

module Oakdex
  module Pokedex
    # Represents the type of a Pokemon
    class Type < Base
      json_folder 'type'
      translate :names, :name

      def effectivness_for(other_type)
        public_send(:effectivness)[other_type]
      end
    end
  end
end