Class: Stripe::Forwarding::RequestService::CreateParams::Request
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Forwarding::RequestService::CreateParams::Request
- Defined in:
- lib/stripe/services/forwarding/request_service.rb
Defined Under Namespace
Classes: Header
Instance Attribute Summary collapse
-
#body ⇒ Object
The body payload to send to the destination endpoint.
-
#headers ⇒ Object
The headers to include in the forwarded request.
Instance Method Summary collapse
-
#initialize(body: nil, headers: nil) ⇒ Request
constructor
A new instance of Request.
Methods inherited from RequestParams
Constructor Details
#initialize(body: nil, headers: nil) ⇒ Request
Returns a new instance of Request.
69 70 71 72 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 69 def initialize(body: nil, headers: nil) @body = body @headers = headers end |
Instance Attribute Details
#body ⇒ Object
The body payload to send to the destination endpoint.
65 66 67 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 65 def body @body end |
#headers ⇒ Object
The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.
67 68 69 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 67 def headers @headers end |