class Ag::Event
Attributes
created_at[R]
id[R]
object[R]
producer[R]
verb[R]
Public Class Methods
new(attrs = {})
click to toggle source
# File lib/ag/event.rb, line 9 def initialize(attrs = {}) @id = attrs[:id] @producer = attrs.fetch(:producer) @object = attrs.fetch(:object) @verb = attrs.fetch(:verb) @created_at = attrs.fetch(:created_at) { Time.now.utc } end