Class: PokeApi::Stat::MoveStatAffect
- Inherits:
-
Object
- Object
- PokeApi::Stat::MoveStatAffect
- Defined in:
- lib/poke_api/stat/move_stat_affect.rb
Overview
MoveStatAffect object handling all data fetched from /stat for affecting_moves
Instance Attribute Summary collapse
-
#change ⇒ Object
readonly
Returns the value of attribute change.
-
#move ⇒ Object
readonly
Returns the value of attribute move.
Instance Method Summary collapse
-
#initialize(data) ⇒ MoveStatAffect
constructor
A new instance of MoveStatAffect.
Constructor Details
#initialize(data) ⇒ MoveStatAffect
Returns a new instance of MoveStatAffect.
8 9 10 11 |
# File 'lib/poke_api/stat/move_stat_affect.rb', line 8 def initialize(data) @change = data[:change] @move = Move.new(data[:move]) end |
Instance Attribute Details
#change ⇒ Object (readonly)
Returns the value of attribute change.
5 6 7 |
# File 'lib/poke_api/stat/move_stat_affect.rb', line 5 def change @change end |
#move ⇒ Object (readonly)
Returns the value of attribute move.
5 6 7 |
# File 'lib/poke_api/stat/move_stat_affect.rb', line 5 def move @move end |