Class: Rooftop::SpektrixSync::PriceListSync

Inherits:
Object
  • Object
show all
Defined in:
lib/rooftop/spektrix_sync/lib/price_list_sync.rb

Instance Method Summary collapse

Constructor Details

#initialize(sync_task) ⇒ PriceListSync

Returns a new instance of PriceListSync.



5
6
7
8
9
10
11
# File 'lib/rooftop/spektrix_sync/lib/price_list_sync.rb', line 5

def initialize(sync_task)
  @spektrix_price_lists = sync_task.spektrix_price_lists
  @rooftop_price_lists = sync_task.rooftop_price_lists
  @rooftop_ticket_types = sync_task.rooftop_ticket_types
  @rooftop_price_bands = sync_task.rooftop_price_bands
  @logger = sync_task.logger
end

Instance Method Details

#runObject



13
14
15
16
17
# File 'lib/rooftop/spektrix_sync/lib/price_list_sync.rb', line 13

def run
  sync_price_lists
  # Todo we need to put this in a rake task instead of running every time.
  # remove_orphan_price_lists
end