Class: Smogon::Moveset
- Inherits:
-
Object
- Object
- Smogon::Moveset
- Defined in:
- lib/botemon/smogon/moveset.rb
Instance Attribute Summary collapse
-
#ability ⇒ Object
Returns the value of attribute ability.
-
#evs ⇒ Object
Returns the value of attribute evs.
-
#item ⇒ Object
Returns the value of attribute item.
-
#moves ⇒ Object
Returns the value of attribute moves.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nature ⇒ Object
Returns the value of attribute nature.
-
#pokemon ⇒ Object
Returns the value of attribute pokemon.
-
#tier ⇒ Object
Returns the value of attribute tier.
Instance Method Summary collapse
Instance Attribute Details
#ability ⇒ Object
Returns the value of attribute ability.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def ability @ability end |
#evs ⇒ Object
Returns the value of attribute evs.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def evs @evs end |
#item ⇒ Object
Returns the value of attribute item.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def item @item end |
#moves ⇒ Object
Returns the value of attribute moves.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def moves @moves end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def name @name end |
#nature ⇒ Object
Returns the value of attribute nature.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def nature @nature end |
#pokemon ⇒ Object
Returns the value of attribute pokemon.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def pokemon @pokemon end |
#tier ⇒ Object
Returns the value of attribute tier.
22 23 24 |
# File 'lib/botemon/smogon/moveset.rb', line 22 def tier @tier end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/botemon/smogon/moveset.rb', line 24 def to_s "Item: #{item.join(' / ')}\nAbility: #{ability.join(' / ')}\nNature: #{nature.join(' / ')}\nMoves: #{''.tap { |s| moves.each { |move| s << move.join(' / ') + ', '}}[0..-3]}\nEVs: #{evs}" end |