class Sleek::Event
Public Class Methods
create_with_namespace(namespace, bucket, payload)
click to toggle source
# File lib/sleek/event.rb, line 33 def self.create_with_namespace(namespace, bucket, payload) sleek = payload.delete(:sleek) event = create(namespace: namespace, bucket: bucket, data: payload) event.sleek.update_attributes sleek event end