Sha256: b6ec56a42f65042b2175f7e2e341f7e5b635a9168c02596ef29a23df21723953

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

class TableSync::Publishing::Raw
  include Tainbox

  attribute :model_name
  attribute :table_name
  attribute :schema_name
  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

3 entries across 3 versions & 1 rubygems

Version Path
table_sync-6.4.0 lib/table_sync/publishing/raw.rb
table_sync-6.3.0 lib/table_sync/publishing/raw.rb
table_sync-6.1.0 lib/table_sync/publishing/raw.rb