class Quickbooks::Service::Responses::OAuth2HttpResponse
Attributes
Public Class Methods
Source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 11 def initialize(response) @real_response = response end
response : Faraday response
Public Instance Methods
Source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 19 def body @real_response.body end
Source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 27 def code @real_response.status.to_i end
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
Source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 23 def plain_body body end
Source
# File lib/quickbooks/service/responses/oauth2_http_response.rb, line 15 def version 2 end