Class: PokeApi::Characteristic
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Characteristic
- Defined in:
- lib/poke_api/characteristic.rb
Overview
Characteristic object handling all data fetched from /characteristic
Instance Attribute Summary collapse
-
#descriptions ⇒ Object
readonly
Returns the value of attribute descriptions.
-
#gene_modulo ⇒ Object
readonly
Returns the value of attribute gene_modulo.
-
#highest_stat ⇒ Object
readonly
Returns the value of attribute highest_stat.
-
#possible_values ⇒ Object
readonly
Returns the value of attribute possible_values.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Characteristic
constructor
A new instance of Characteristic.
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) ⇒ Characteristic
Returns a new instance of Characteristic.
9 10 11 |
# File 'lib/poke_api/characteristic.rb', line 9 def initialize(data) assign_data(data) end |
Instance Attribute Details
#descriptions ⇒ Object (readonly)
Returns the value of attribute descriptions.
4 5 6 |
# File 'lib/poke_api/characteristic.rb', line 4 def descriptions @descriptions end |
#gene_modulo ⇒ Object (readonly)
Returns the value of attribute gene_modulo.
4 5 6 |
# File 'lib/poke_api/characteristic.rb', line 4 def gene_modulo @gene_modulo end |
#highest_stat ⇒ Object (readonly)
Returns the value of attribute highest_stat.
4 5 6 |
# File 'lib/poke_api/characteristic.rb', line 4 def highest_stat @highest_stat end |
#possible_values ⇒ Object (readonly)
Returns the value of attribute possible_values.
4 5 6 |
# File 'lib/poke_api/characteristic.rb', line 4 def possible_values @possible_values end |