Class: Smogon::Ability
- Inherits:
-
Object
- Object
- Smogon::Ability
- Defined in:
- lib/smogon/types/ability.rb
Instance Attribute Summary collapse
-
#_name ⇒ Object
Returns the value of attribute _name.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#_name ⇒ Object
Returns the value of attribute _name.
22 23 24 |
# File 'lib/smogon/types/ability.rb', line 22 def _name @_name end |
#description ⇒ Object
Returns the value of attribute description.
22 23 24 |
# File 'lib/smogon/types/ability.rb', line 22 def description @description end |
#name ⇒ Object
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_s ⇒ Object
24 25 26 |
# File 'lib/smogon/types/ability.rb', line 24 def to_s "Name: #{name}\nDescription: #{description}" end |
#url ⇒ Object
28 29 30 |
# File 'lib/smogon/types/ability.rb', line 28 def url "http://www.smogon.com/bw/abilities/#{_name}" end |