Module: Controll::Enabler::Notify
Instance Method Summary
collapse
#create_event, #normalize
Instance Method Details
#events ⇒ Object
25
26
27
|
# File 'lib/controll/enabler/notify.rb', line 25
def events
@events ||= Controll::Events.new
end
|
#main_event ⇒ Object
29
30
31
|
# File 'lib/controll/enabler/notify.rb', line 29
def main_event
events.last || create_success
end
|
#notify(event, *args) ⇒ Object
19
20
21
22
|
# File 'lib/controll/enabler/notify.rb', line 19
def notify event, *args
events << normalize(event, *args)
self end
|