Class: Axn::Webhooks::Outbound::Transport::Response
- Inherits:
-
Data
- Object
- Data
- Axn::Webhooks::Outbound::Transport::Response
- Defined in:
- lib/axn/webhooks/outbound/transport.rb
Overview
body: defaults to nil (via the custom initialize) so a custom transport built against
the pre-existing two-field shape keeps working unmodified.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, headers:, body: nil) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status:, headers:, body: nil) ⇒ Response
Returns a new instance of Response.
15 16 17 |
# File 'lib/axn/webhooks/outbound/transport.rb', line 15 def initialize(status:, headers:, body: nil) super end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
14 15 16 |
# File 'lib/axn/webhooks/outbound/transport.rb', line 14 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers
14 15 16 |
# File 'lib/axn/webhooks/outbound/transport.rb', line 14 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status
14 15 16 |
# File 'lib/axn/webhooks/outbound/transport.rb', line 14 def status @status end |