Class: PokeApi::Stat::MoveStatAffect

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#changeObject (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

#moveObject (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