Class: Stripe::Forwarding::RequestCreateParams::Request
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Forwarding::RequestCreateParams::Request
- Defined in:
- lib/stripe/params/forwarding/request_create_params.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.
24 25 26 27 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 24 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.
20 21 22 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 20 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.
22 23 24 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 22 def headers @headers end |