Class: PokeApi::Nature

Inherits:
NamedApiResource show all
Defined in:
lib/poke_api/nature.rb,
lib/poke_api/nature/nature_stat_change.rb,
lib/poke_api/nature/move_battle_style_preference.rb

Overview

Nature object handling all data fetched from /nature

Defined Under Namespace

Classes: MoveBattleStylePreference, NatureStatChange

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) ⇒ Nature

Returns a new instance of Nature.



12
13
14
# File 'lib/poke_api/nature.rb', line 12

def initialize(data)
  assign_data(data)
end

Instance Attribute Details

#decreased_statObject (readonly)

Returns the value of attribute decreased_stat.



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

def decreased_stat
  @decreased_stat
end

#hates_flavorObject (readonly)

Returns the value of attribute hates_flavor.



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

def hates_flavor
  @hates_flavor
end

#increased_statObject (readonly)

Returns the value of attribute increased_stat.



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

def increased_stat
  @increased_stat
end

#likes_flavorObject (readonly)

Returns the value of attribute likes_flavor.



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

def likes_flavor
  @likes_flavor
end

#move_battle_style_preferencesObject (readonly)

Returns the value of attribute move_battle_style_preferences.



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

def move_battle_style_preferences
  @move_battle_style_preferences
end

#namesObject (readonly)

Returns the value of attribute names.



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

def names
  @names
end

#pokeathlon_stat_changesObject (readonly)

Returns the value of attribute pokeathlon_stat_changes.



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

def pokeathlon_stat_changes
  @pokeathlon_stat_changes
end