Class: TableSync::Publishing::Data::Objects
- Inherits:
-
Object
- Object
- TableSync::Publishing::Data::Objects
- Defined in:
- lib/table_sync/publishing/data/objects.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
- #construct ⇒ Object
-
#initialize(objects:, event:) ⇒ Objects
constructor
A new instance of Objects.
Constructor Details
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
5 6 7 |
# File 'lib/table_sync/publishing/data/objects.rb', line 5 def event @event end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
5 6 7 |
# File 'lib/table_sync/publishing/data/objects.rb', line 5 def objects @objects end |
Instance Method Details
#construct ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/table_sync/publishing/data/objects.rb', line 12 def construct { model: model, attributes: attributes_for_sync, version: version, event: event.resolve, metadata: event., } end |