Class: TableSync::Publishing::Params::Single
- Defined in:
- lib/table_sync/publishing/params/single.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
Instance Method Summary collapse
-
#initialize(object:) ⇒ Single
constructor
A new instance of Single.
Methods inherited from Base
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
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/table_sync/publishing/params/single.rb', line 5 def headers @headers end |
#object ⇒ Object (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_key ⇒ Object (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 |