Class: TableSync::Publishing::Batch

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

Direct Known Subclasses

Params::Raw

Instance Method Summary collapse

Methods included from Utils::RequiredValidator

included

Instance Method Details

#messageObject



25
26
27
# File 'lib/table_sync/publishing/batch.rb', line 25

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

#publish_laterObject Also known as: publish_async



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

def publish_later
  job.perform_later(job_attributes)
end

#publish_nowObject



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

def publish_now
  message.publish
end