Sha256: 0eea3f23cd4905ce45fd422c1f26945831db4fc7c0e53595bf1bd61b6e831684

Contents?: true

Size: 468 Bytes

Versions: 11

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module TableSync::Publishing::Params
  class Batch < Base
    include Tainbox

    attribute :object_class

    attribute :exchange_name, default: -> { TableSync.exchange_name }
    attribute :routing_key,   default: -> { calculated_routing_key }
    attribute :headers,       default: -> { calculated_headers }

    private

    def attributes_for_routing_key
      {}
    end

    def attributes_for_headers
      {}
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
table_sync-6.5.1 lib/table_sync/publishing/params/batch.rb
table_sync-6.5.0 lib/table_sync/publishing/params/batch.rb
table_sync-6.4.2 lib/table_sync/publishing/params/batch.rb
table_sync-6.4.1 lib/table_sync/publishing/params/batch.rb
table_sync-6.4.0 lib/table_sync/publishing/params/batch.rb
table_sync-6.3.0 lib/table_sync/publishing/params/batch.rb
table_sync-6.1.0 lib/table_sync/publishing/params/batch.rb
table_sync-6.0.4 lib/table_sync/publishing/params/batch.rb
table_sync-6.0.3 lib/table_sync/publishing/params/batch.rb
table_sync-6.0.2 lib/table_sync/publishing/params/batch.rb
table_sync-6.0 lib/table_sync/publishing/params/batch.rb