Class: Elmas::OauthResponse
Constant Summary
Constants inherited
from Response
Response::ERROR_CODES, Response::SUCCESS_CODES, Response::UNAUTHORIZED_CODES
Instance Attribute Summary
Attributes inherited from Response
#response, #status_code
Instance Method Summary
collapse
Methods inherited from Response
#error_message, #fail?, #initialize, #log_error, #parsed, #result, #results, #status, #success?
Instance Method Details
#access_token ⇒ Object
113
114
115
|
# File 'lib/elmas/oauth.rb', line 113
def access_token
body["access_token"]
end
|
#body ⇒ Object
109
110
111
|
# File 'lib/elmas/oauth.rb', line 109
def body
JSON.parse(@response.body)
end
|
#division ⇒ Object
117
118
119
|
# File 'lib/elmas/oauth.rb', line 117
def division
body["division"]
end
|
#refresh_token ⇒ Object
121
122
123
|
# File 'lib/elmas/oauth.rb', line 121
def refresh_token
body["refresh_token"]
end
|