Class: TableSync::Publishing::Batch

Inherits:
Object
  • Object
show all
Includes:
Tainbox
Defined in:
lib/table_sync/publishing/batch.rb

Direct Known Subclasses

Params::Raw

Instance Method Summary collapse

Instance Method Details

#messageObject



22
23
24
# File 'lib/table_sync/publishing/batch.rb', line 22

def message
  TableSync::Publishing::Message::Batch.new(attributes)
end

#publish_laterObject Also known as: publish_async



14
15
16
# File 'lib/table_sync/publishing/batch.rb', line 14

def publish_later
  job.perform_later(job_attributes)
end

#publish_nowObject



18
19
20
# File 'lib/table_sync/publishing/batch.rb', line 18

def publish_now
  message.publish
end