Class: TableSync::Publishing::Params::Single

Inherits:
Base
  • Object
show all
Defined in:
lib/table_sync/publishing/params/single.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_PARAMS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#construct

Constructor Details

#initialize(object:) ⇒ Single

Returns a new instance of Single.



7
8
9
10
11
# File 'lib/table_sync/publishing/params/single.rb', line 7

def initialize(object:)
  @object      = object
  @routing_key = calculated_routing_key
  @headers     = calculated_headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



5
6
7
# File 'lib/table_sync/publishing/params/single.rb', line 5

def headers
  @headers
end

#objectObject (readonly)

Returns the value of attribute object.



5
6
7
# File 'lib/table_sync/publishing/params/single.rb', line 5

def object
  @object
end

#routing_keyObject (readonly)

Returns the value of attribute routing_key.



5
6
7
# File 'lib/table_sync/publishing/params/single.rb', line 5

def routing_key
  @routing_key
end