Class: Axn::Webhooks::Outbound::Transport::Response

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



14
15
16
# File 'lib/axn/webhooks/outbound/transport.rb', line 14

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



14
15
16
# File 'lib/axn/webhooks/outbound/transport.rb', line 14

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



14
15
16
# File 'lib/axn/webhooks/outbound/transport.rb', line 14

def status
  @status
end