class PokeApi::Type::TypeRelations
TypeRelations
object handling lists of type relationships
Attributes
double_damage_from[R]
double_damage_to[R]
half_damage_from[R]
half_damage_to[R]
no_damage_from[R]
no_damage_to[R]
Public Class Methods
new(data)
click to toggle source
# File lib/poke_api/type/type_relations.rb, line 14 def initialize(data) data.each_key do |key| instance_variable_set("@#{key}", assign_list(data: data[key], klass: Type)) end end