class IntuitOAuth::ClientResponse
Attributes
access_token[R]
body[R]
code[R]
expires_in[R]
headers[R]
id_token[R]
realm_id[R]
refresh_token[R]
x_refresh_token_expires_in[R]
Public Class Methods
new(response)
click to toggle source
# File lib/intuit-oauth/response.rb, line 20 def initialize(response) @access_token = response['access_token'] @expires_in = response['expires_in'] @refresh_token = response['refresh_token'] @x_refresh_token_expires_in = response['x_refresh_token_expires_in'] if response['id_token'] @id_token = response['id_token'] end if response['realmId'] @realm_id = response['realmId'] end @headers = response.headers @body = response @code = response.code end