Class: PokeApi::Characteristic

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/characteristic.rb

Overview

Characteristic object handling all data fetched from /characteristic

Instance Attribute Summary collapse

Attributes inherited from NamedApiResource

#id, #name, #url

Instance Method Summary collapse

Methods inherited from NamedApiResource

#get

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

#descriptionsObject (readonly)

Returns the value of attribute descriptions.



4
5
6
# File 'lib/poke_api/characteristic.rb', line 4

def descriptions
  @descriptions
end

#gene_moduloObject (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_statObject (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_valuesObject (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