Class: Smogon::Move
- Inherits:
-
Object
- Object
- Smogon::Move
- Defined in:
- lib/smogon/types/move.rb
Instance Attribute Summary collapse
-
#_name ⇒ Object
Returns the value of attribute _name.
-
#accuracy ⇒ Object
Returns the value of attribute accuracy.
-
#damage ⇒ Object
Returns the value of attribute damage.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#power ⇒ Object
Returns the value of attribute power.
-
#pp ⇒ Object
Returns the value of attribute pp.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#target ⇒ Object
Returns the value of attribute target.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#_name ⇒ Object
Returns the value of attribute _name.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def _name @_name end |
#accuracy ⇒ Object
Returns the value of attribute accuracy.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def accuracy @accuracy end |
#damage ⇒ Object
Returns the value of attribute damage.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def damage @damage end |
#description ⇒ Object
Returns the value of attribute description.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def name @name end |
#power ⇒ Object
Returns the value of attribute power.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def power @power end |
#pp ⇒ Object
Returns the value of attribute pp.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def pp @pp end |
#priority ⇒ Object
Returns the value of attribute priority.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def priority @priority end |
#target ⇒ Object
Returns the value of attribute target.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def target @target end |
#type ⇒ Object
Returns the value of attribute type.
22 23 24 |
# File 'lib/smogon/types/move.rb', line 22 def type @type end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/smogon/types/move.rb', line 24 def to_s "Name: #{name}\nDescription: #{description}\nType: #{type}\nPower: #{power}\nAccuracy: #{accuracy}\nPP: #{pp}\nPriority: #{priority}\nDamage: #{damage}\nTarget: #{target}" end |
#url ⇒ Object
28 29 30 |
# File 'lib/smogon/types/move.rb', line 28 def url "http://www.smogon.com/bw/moves/#{_name}" end |