Sha256: 700175dfcbf6bc0607645c22917465dc0f136ad11f2c29ba46c8b6fee8b11647
Contents?: true
Size: 834 Bytes
Versions: 8
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true require 'cyclone_lariat/messages/abstract' require 'cyclone_lariat/messages/v2/validator' module CycloneLariat module Messages module V2 class Event < Abstract validator Validator attrs :subject, :object KIND = 'event' def kind KIND end def serialize { uuid: uuid, publisher: publisher, type: [kind, type].join('_'), version: version, data: data, request_id: request_id, sent_at: sent_at&.iso8601(3), subject: subject, object: object }.compact end def subject @subject ||= {} end def object @object ||= {} end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems