Class: TableSync::Publishing::Message::Batch

Inherits:
Base
  • Object
show all
Defined in:
lib/table_sync/publishing/message/batch.rb

Instance Attribute Summary

Attributes inherited from Base

#objects

Instance Method Summary collapse

Methods inherited from Base

#data, #empty?, #find_or_init_objects, #initialize, #message_params, #model_naming, #notify!, #publish

Constructor Details

This class inherits a constructor from TableSync::Publishing::Message::Base

Instance Method Details

#paramsObject



8
9
10
11
12
# File 'lib/table_sync/publishing/message/batch.rb', line 8

def params
  TableSync::Publishing::Params::Batch.new(
    attributes.slice(:object_class, :headers, :routing_key).compact,
  ).construct
end