Class: Smogon::Ability

Inherits:
Object
  • Object
show all
Defined in:
lib/smogon/types/ability.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/ability.rb', line 22

def _name
  @_name
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/smogon/types/ability.rb', line 24

def to_s
  "Name: #{name}\nDescription: #{description}"
end

#urlObject



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

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