Sha256: 273f4f6c5c22dda4d9000a42973f57869b6922a3ea0ec173312aeb887d0a0aa9
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true module TableSync::Publishing::Data class Raw attr_reader :object_class, :attributes_for_sync, :event def initialize(object_class:, attributes_for_sync:, event:) @object_class = object_class @attributes_for_sync = attributes_for_sync @event = TableSync::Event.new(event) end def construct { model: object_class, attributes: attributes_for_sync, version: version, event: event.resolve, metadata: event.metadata, } end def version Time.current.to_f end end end
Version data entries
4 entries across 4 versions & 1 rubygems