Class: PokeApi::Move

Inherits:
NamedApiResource show all
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

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

#accuracyObject (readonly)

Returns the value of attribute accuracy.



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

def accuracy
  @accuracy
end

#contest_combosObject (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_effectObject (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_typeObject (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_classObject (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_chanceObject (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_changesObject (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_entriesObject (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_entriesObject (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

#generationObject (readonly)

Returns the value of attribute generation.



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

def generation
  @generation
end

#machinesObject (readonly)

Returns the value of attribute machines.



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

def machines
  @machines
end

#metaObject (readonly)

Returns the value of attribute meta.



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

def meta
  @meta
end

#namesObject (readonly)

Returns the value of attribute names.



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

def names
  @names
end

#past_valuesObject (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

#powerObject (readonly)

Returns the value of attribute power.



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

def power
  @power
end

#ppObject (readonly)

Returns the value of attribute pp.



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

def pp
  @pp
end

#priorityObject (readonly)

Returns the value of attribute priority.



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

def priority
  @priority
end

#stat_changesObject (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_effectObject (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

#targetObject (readonly)

Returns the value of attribute target.



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

def target
  @target
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end