Class: TableSync::Publishing::Message::Single
- Defined in:
- lib/table_sync/publishing/message/single.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
Attributes inherited from Base
#compress, #custom_version, #event, #object_class, #objects, #original_attributes
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Single
constructor
A new instance of Single.
- #object ⇒ Object
- #params ⇒ Object
Methods inherited from Base
#data, #empty?, #find_or_init_objects, #message_params, #model_naming, #notify!, #publish
Constructor Details
#initialize(params = {}) ⇒ Single
Returns a new instance of Single.
7 8 9 10 11 |
# File 'lib/table_sync/publishing/message/single.rb', line 7 def initialize(params = {}) super self.headers = params[:headers] end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
5 6 7 |
# File 'lib/table_sync/publishing/message/single.rb', line 5 def headers @headers end |
Instance Method Details
#object ⇒ Object
13 14 15 |
# File 'lib/table_sync/publishing/message/single.rb', line 13 def object objects.first end |