Class: Rooftop::SpektrixSync::PriceListSync
- Inherits:
-
Object
- Object
- Rooftop::SpektrixSync::PriceListSync
- Defined in:
- lib/rooftop/spektrix_sync/lib/price_list_sync.rb
Instance Method Summary collapse
-
#initialize(sync_task) ⇒ PriceListSync
constructor
A new instance of PriceListSync.
- #run ⇒ Object
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
#run ⇒ Object
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 |