Sha256: cb5bc3611e51a1143921a5abec627cf1a90f272a11d4937053d9daeb2a464f30
Contents?: true
Size: 261 Bytes
Versions: 1
Compression:
Stored size: 261 Bytes
Contents
require 'securerandom' module Citrus module EventBus class Event < Struct.new(:id, :timestamp, :type, :body) def self.for_type(type, body = nil) self.new(SecureRandom.uuid, Time.now.to_i, type.to_s, Hash(body)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
citrus-event-bus-0.0.1 | lib/citrus/event_bus/event.rb |