Class: ActiveHook::App::Creation
- Inherits:
-
Struct
- Object
- Struct
- ActiveHook::App::Creation
- Defined in:
- lib/activehook/app/middleware.rb
Instance Attribute Summary collapse
-
#req ⇒ Object
Returns the value of attribute req.
Instance Method Summary collapse
Instance Attribute Details
#req ⇒ Object
Returns the value of attribute req
45 46 47 |
# File 'lib/activehook/app/middleware.rb', line 45 def req @req end |
Instance Method Details
#start ⇒ Object
46 47 48 49 50 51 |
# File 'lib/activehook/app/middleware.rb', line 46 def start hook = JSON.parse(req.body.read) ActiveHook::Hook.new(hook).perform rescue false end |