Sha256: 2fb345c0f7801a35170db80a37be4d384ee87fa205a1126c0e768ad108ba323c

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

class TableSync::Publishing::Raw
  include Tainbox
  include TableSync::Utils::RequiredValidator

  attribute :model_name
  attribute :table_name
  attribute :schema_name
  attribute :original_attributes

  attribute :routing_key
  attribute :headers

  attribute :event, default: :update

  require_attributes :model_name, :original_attributes

  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.5.1 lib/table_sync/publishing/raw.rb
table_sync-6.5.0 lib/table_sync/publishing/raw.rb
table_sync-6.4.2 lib/table_sync/publishing/raw.rb
table_sync-6.4.1 lib/table_sync/publishing/raw.rb