lib/poke_api/encounter_condition_value.rb
module PokeApi
# EncounterConditionValue object handling all data fetched from /encounter-condition-value
class EncounterConditionValue < NamedApiResource
attr_reader :condition,
:names
def initialize(data)
assign_data(data)
end
private
def custom_endpoint_object
{
condition: EncounterCondition
}
end
end
end