module Stripe::StripeResponseBase
Attributes
http_headers[RW]
A Hash of the HTTP headers of the response.
http_status[RW]
The integer HTTP status code of the response.
request_id[RW]
The Stripe
request ID of the response.
Public Class Methods
populate_for_net_http(resp, http_resp)
click to toggle source
# File lib/stripe/stripe_response.rb, line 61 def self.populate_for_net_http(resp, http_resp) resp.http_headers = StripeResponseHeaders.from_net_http(http_resp) resp.http_status = http_resp.code.to_i resp.request_id = http_resp["request-id"] end