class Authlete::Model::Response::AccessToken
Attributes
Private Instance Methods
Source
# File lib/authlete/model/response/access-token.rb, line 64 def defaults { accessTokenHash: nil, refreshTokenHash: nil, clientId: 0, subject: nil, grantType: nil, scopes: nil, accessTokenExpiresAt: 0, refreshTokenExpiresAt: 0, createdAt: 0, lastRefreshedAt: 0, properties: nil } end
Source
# File lib/authlete/model/response/access-token.rb, line 80 def set_params(hash) @accessTokenHash = hash[:accessTokenHash] @refreshTokenHash = hash[:refreshTokenHash] @clientId = hash[:clientId] @subject = hash[:subject] @grantType = hash[:grantType] @scopes = hash[:scopes] @accessTokenExpiresAt = hash[:accessTokenExpiresAt] @refreshTokenExpiresAt = hash[:refreshTokenExpiresAt] @createdAt = hash[:createdAt] @lastRefreshedAt = hash[:lastRefreshedAt] @properties = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) } end