Class: Axn::Webhooks::Inbound::RespondContext
- Inherits:
-
Object
- Object
- Axn::Webhooks::Inbound::RespondContext
- Defined in:
- lib/axn/webhooks/inbound/respond_context.rb
Overview
instance_exec context for a respond block: exposes ack/text/xml/json as bare calls,
so a respond proc reads text("...") rather than Axn::Webhooks::Response.text("...") —
mirrors how the verify custom block gets header/params/etc. as bare calls from DSL.
Instance Method Summary collapse
Instance Method Details
#ack ⇒ Object
10 |
# File 'lib/axn/webhooks/inbound/respond_context.rb', line 10 def ack(**) = Response.ack(**) |
#json(body) ⇒ Object
13 |
# File 'lib/axn/webhooks/inbound/respond_context.rb', line 13 def json(body, **) = Response.json(body, **) |