Class: GameProcessor

Inherits:
Object
  • Object
show all
Defined in:
app/processors/game_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(game, listing) ⇒ GameProcessor


4
5
6
7
# File 'app/processors/game_processor.rb', line 4

def initialize(game, listing)
  @game = game
  @listing = listing
end

Instance Attribute Details

#gameObject (readonly)

Returns the value of attribute game


2
3
4
# File 'app/processors/game_processor.rb', line 2

def game
  @game
end

#listingObject (readonly)

Returns the value of attribute listing


2
3
4
# File 'app/processors/game_processor.rb', line 2

def listing
  @listing
end

Instance Method Details

#processObject


9
10
11
# File 'app/processors/game_processor.rb', line 9

def process
  item_processor.process if is_from_correct_game?
end