class Quickbooks::Service::Responses::OAuth2HttpResponse
Attributes
real_response[RW]
Public Class Methods
new(response)
click to toggle source
response : Faraday response
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 11 def initialize(response) @real_response = response end
Public Instance Methods
body()
click to toggle source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 19 def body @real_response.body end
code()
click to toggle source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 27 def code @real_response.status.to_i end
headers()
click to toggle source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 31 def headers if @real_response.respond_to?(:headers) @real_response.headers else nil end end
plain_body()
click to toggle source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 23 def plain_body body end
version()
click to toggle source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 15 def version 2 end