class Authlete::Model::Response::TokenCreateResponse
Attributes
accessToken[RW]
access_token[RW]
access_token=[RW]
action[RW]
clientId[RW]
client_id[RW]
client_id=[RW]
expiresAt[RW]
expiresIn[RW]
expires_at[RW]
expires_at=[RW]
expires_in[RW]
expires_in=[RW]
grantType[RW]
grant_type[RW]
grant_type=[RW]
properties[RW]
refreshToken[RW]
refresh_token[RW]
refresh_token=[RW]
scopes[RW]
subject[RW]
tokenType[RW]
token_type[RW]
token_type=[RW]
Private Instance Methods
defaults()
click to toggle source
Calls superclass method
Authlete::Model::Result#defaults
# File lib/authlete/model/response/token-create-response.rb, line 61 def defaults super.merge( action: nil, grantType: nil, clientId: 0, subject: nil, scopes: nil, accessToken: nil, tokenType: nil, expiresIn: 0, expiresAt: 0, refreshToken: nil, properties: nil ) end
set_params(hash)
click to toggle source
Calls superclass method
Authlete::Model::Result#set_params
# File lib/authlete/model/response/token-create-response.rb, line 77 def set_params(hash) super(hash) @action = hash[:action] @grantType = hash[:grantType] @clientId = hash[:clientId] @subject = hash[:subject] @scopes = hash[:scopes] @accessToken = hash[:accessToken] @tokenType = hash[:tokenType] @expiresIn = hash[:expiresIn] @expiresAt = hash[:expiresAt] @refreshToken = hash[:refreshToken] @properties = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) } end