Class: Webhookdb::Replicator::WebhookRequest
- Inherits:
-
TypedStruct
- Object
- TypedStruct
- Webhookdb::Replicator::WebhookRequest
- Defined in:
- lib/webhookdb/replicator/webhook_request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#rack_request ⇒ Object
When a webhook is processed synchronously, this will be set to the Rack::Request.
Method Summary
Methods inherited from TypedStruct
#[], #_apply, #_defaults, #as_json, #change, #initialize
Constructor Details
This class inherits a constructor from Webhookdb::TypedStruct
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/webhookdb/replicator/webhook_request.rb', line 4 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
4 5 6 |
# File 'lib/webhookdb/replicator/webhook_request.rb', line 4 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/webhookdb/replicator/webhook_request.rb', line 4 def method @method end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/webhookdb/replicator/webhook_request.rb', line 4 def path @path end |
#rack_request ⇒ Object
When a webhook is processed synchronously, this will be set to the Rack::Request. Normal (async) webhook processing does not have this available.
8 9 10 |
# File 'lib/webhookdb/replicator/webhook_request.rb', line 8 def rack_request @rack_request end |