Class: Smogon::Move

Inherits:
Object
  • Object
show all
Defined in:
lib/smogon/types/move.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#_nameObject

Returns the value of attribute _name.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def _name
  @_name
end

#accuracyObject

Returns the value of attribute accuracy.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def accuracy
  @accuracy
end

#damageObject

Returns the value of attribute damage.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def damage
  @damage
end

#descriptionObject

Returns the value of attribute description.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def description
  @description
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def name
  @name
end

#powerObject

Returns the value of attribute power.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def power
  @power
end

#ppObject

Returns the value of attribute pp.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def pp
  @pp
end

#priorityObject

Returns the value of attribute priority.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def priority
  @priority
end

#targetObject

Returns the value of attribute target.



22
23
24
# File 'lib/smogon/types/move.rb', line 22

def target
  @target
end

#typeObject

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_sObject



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

#urlObject



28
29
30
# File 'lib/smogon/types/move.rb', line 28

def url
  "http://www.smogon.com/bw/moves/#{_name}"
end