Class: Smooth::Event

Inherits:
ActiveSupport::Notifications::Event
  • Object
show all
Extended by:
Adapter
Defined in:
lib/smooth/event.rb,
lib/smooth/event/relay.rb

Defined Under Namespace

Modules: Adapter Classes: Proxy, Relay

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Adapter

subscribe_to, track_event

Class Method Details

.providerObject



6
7
8
# File 'lib/smooth/event.rb', line 6

def self.provider
  ActiveSupport::Notifications
end

Instance Method Details

#payloadObject



10
11
12
13
# File 'lib/smooth/event.rb', line 10

def payload
  hash = super
  hash && hash.to_mash
end