class Stripe::StripeResponse

the Stripe API.
StripeResponse encapsulates some vitals of a response that came back from

def self.from_net_http(http_resp)

object.
Initializes a StripeResponse object from a Net::HTTP::HTTPResponse
def self.from_net_http(http_resp)
  resp = StripeResponse.new
  resp.data = JSON.parse(http_resp.body, symbolize_names: true)
  resp.http_body = http_resp.body
  StripeResponseBase.populate_for_net_http(resp, http_resp)
  resp
end