Sha256: 4400057994d2ca2e5fb452f8a6d4f9cdf8de05f0644484ce10a9cdbc916696d9

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

class TableSync::Publishing::Raw
  include Tainbox

  attribute :object_class
  attribute :original_attributes

  attribute :routing_key
  attribute :headers

  attribute :event, default: :update

  def publish_now
    message.publish
  end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_sync-6.0.4 lib/table_sync/publishing/raw.rb
table_sync-6.0.3 lib/table_sync/publishing/raw.rb
table_sync-6.0.2 lib/table_sync/publishing/raw.rb
table_sync-6.0 lib/table_sync/publishing/raw.rb