Sha256: b3c133f53b95d456f15dd3cf47bd39760d90fdc0c90c215b0f2640e7fed88ef4
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module PayPro class Response attr_accessor :request_id, :data, :raw_body, :status def self.from_response(response_object) response = new response.data = JSON.parse(response_object.body) response.raw_body = response_object.body response.status = response_object.status response.request_id = response_object.headers['x-request-id'] response end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paypro-2.0.0 | lib/pay_pro/response.rb |