Class: Stripe::Forwarding::Request::CreateParams::Request

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/forwarding/request.rb

Defined Under Namespace

Classes: Header

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(body: nil, headers: nil) ⇒ Request

Returns a new instance of Request.



130
131
132
133
# File 'lib/stripe/resources/forwarding/request.rb', line 130

def initialize(body: nil, headers: nil)
  @body = body
  @headers = headers
end

Instance Attribute Details

#bodyObject

The body payload to send to the destination endpoint.



126
127
128
# File 'lib/stripe/resources/forwarding/request.rb', line 126

def body
  @body
end

#headersObject

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.



128
129
130
# File 'lib/stripe/resources/forwarding/request.rb', line 128

def headers
  @headers
end