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

#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

#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}"
end

#urlObject



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

def url
  "http://www.smogon.com/dex/#{API::METAGAME}/moves/#{@_name}"
end