Class: PokeApi::EncounterCondition
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::EncounterCondition
- Defined in:
- lib/poke_api/encounter_condition.rb
Overview
EncounterCondition object handling all data fetched from /encounter-condition
Instance Attribute Summary collapse
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ EncounterCondition
constructor
A new instance of EncounterCondition.
Methods inherited from NamedApiResource
Methods included from AssignmentHelpers
assign_list, custom_endpoint_object, endpoint_assignment, get_named_api_resource_from_url, try_to_assign
Constructor Details
#initialize(data) ⇒ EncounterCondition
Returns a new instance of EncounterCondition.
7 8 9 |
# File 'lib/poke_api/encounter_condition.rb', line 7 def initialize(data) assign_data(data) end |
Instance Attribute Details
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/encounter_condition.rb', line 4 def names @names end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
4 5 6 |
# File 'lib/poke_api/encounter_condition.rb', line 4 def values @values end |