class AuthRocket::Event

Attributes

event_type[RW]

Public Instance Methods

find_notification(nid) click to toggle source
# File lib/authrocket/event.rb, line 32
def find_notification(nid)
  notifications.detect{|n| n.id == nid} || raise(RecordNotFound)
end
notifications() click to toggle source
# File lib/authrocket/event.rb, line 21
def notifications
  reload unless @attribs[:notifications]
  unless @stuffed_event
    @attribs[:notifications].each do |n|
      n.send :load, data: {event: self, event_id: id}
    end
    @stuffed_event = true
  end
  @attribs[:notifications]
end
request_data() click to toggle source
# File lib/authrocket/event.rb, line 16
def request_data
  self[:request]
end