Class: PokeApi::Move
- Inherits:
-
NamedApiResource
- Object
- NamedApiResource
- PokeApi::Move
- Defined in:
- lib/poke_api/move.rb,
lib/poke_api/move/move_meta_data.rb,
lib/poke_api/move/move_flavor_text.rb,
lib/poke_api/move/move_stat_change.rb,
lib/poke_api/move/contest_combo_sets.rb,
lib/poke_api/move/contest_combo_detail.rb,
lib/poke_api/move/past_move_stat_value.rb
Overview
Move object handling all data fetched from /move
Defined Under Namespace
Classes: ContestComboDetail, ContestComboSets, MoveFlavorText, MoveMetaData, MoveStatChange, PastMoveStatValue
Instance Attribute Summary collapse
-
#accuracy ⇒ Object
readonly
Returns the value of attribute accuracy.
-
#contest_combos ⇒ Object
readonly
Returns the value of attribute contest_combos.
-
#contest_effect ⇒ Object
readonly
Returns the value of attribute contest_effect.
-
#contest_type ⇒ Object
readonly
Returns the value of attribute contest_type.
-
#damage_class ⇒ Object
readonly
Returns the value of attribute damage_class.
-
#effect_chance ⇒ Object
readonly
Returns the value of attribute effect_chance.
-
#effect_changes ⇒ Object
readonly
Returns the value of attribute effect_changes.
-
#effect_entries ⇒ Object
readonly
Returns the value of attribute effect_entries.
-
#flavor_text_entries ⇒ Object
readonly
Returns the value of attribute flavor_text_entries.
-
#generation ⇒ Object
readonly
Returns the value of attribute generation.
-
#machines ⇒ Object
readonly
Returns the value of attribute machines.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#past_values ⇒ Object
readonly
Returns the value of attribute past_values.
-
#power ⇒ Object
readonly
Returns the value of attribute power.
-
#pp ⇒ Object
readonly
Returns the value of attribute pp.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#stat_changes ⇒ Object
readonly
Returns the value of attribute stat_changes.
-
#super_contest_effect ⇒ Object
readonly
Returns the value of attribute super_contest_effect.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from NamedApiResource
Instance Method Summary collapse
-
#initialize(data) ⇒ Move
constructor
A new instance of Move.
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) ⇒ Move
Returns a new instance of Move.
26 27 28 |
# File 'lib/poke_api/move.rb', line 26 def initialize(data) assign_data(data) end |
Instance Attribute Details
#accuracy ⇒ Object (readonly)
Returns the value of attribute accuracy.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def accuracy @accuracy end |
#contest_combos ⇒ Object (readonly)
Returns the value of attribute contest_combos.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def contest_combos @contest_combos end |
#contest_effect ⇒ Object (readonly)
Returns the value of attribute contest_effect.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def contest_effect @contest_effect end |
#contest_type ⇒ Object (readonly)
Returns the value of attribute contest_type.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def contest_type @contest_type end |
#damage_class ⇒ Object (readonly)
Returns the value of attribute damage_class.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def damage_class @damage_class end |
#effect_chance ⇒ Object (readonly)
Returns the value of attribute effect_chance.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def effect_chance @effect_chance end |
#effect_changes ⇒ Object (readonly)
Returns the value of attribute effect_changes.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def effect_changes @effect_changes end |
#effect_entries ⇒ Object (readonly)
Returns the value of attribute effect_entries.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def effect_entries @effect_entries end |
#flavor_text_entries ⇒ Object (readonly)
Returns the value of attribute flavor_text_entries.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def flavor_text_entries @flavor_text_entries end |
#generation ⇒ Object (readonly)
Returns the value of attribute generation.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def generation @generation end |
#machines ⇒ Object (readonly)
Returns the value of attribute machines.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def machines @machines end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def @meta end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def names @names end |
#past_values ⇒ Object (readonly)
Returns the value of attribute past_values.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def past_values @past_values end |
#power ⇒ Object (readonly)
Returns the value of attribute power.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def power @power end |
#pp ⇒ Object (readonly)
Returns the value of attribute pp.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def pp @pp end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def priority @priority end |
#stat_changes ⇒ Object (readonly)
Returns the value of attribute stat_changes.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def stat_changes @stat_changes end |
#super_contest_effect ⇒ Object (readonly)
Returns the value of attribute super_contest_effect.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def super_contest_effect @super_contest_effect end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def target @target end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/poke_api/move.rb', line 4 def type @type end |