class CatchBox::Event
Constants
- DELIMITER
Public Class Methods
new()
click to toggle source
# File lib/catch_box/event.rb, line 7 def initialize @name = nil end
Public Instance Methods
call(name)
click to toggle source
# File lib/catch_box/event.rb, line 11 def call(name) @name = name end
map(payload)
click to toggle source
# File lib/catch_box/event.rb, line 15 def map(payload) payload.dig(*@name.split(DELIMITER)) end