class Authlete::Model::Response::TokenIssueResponse

Attributes

accessToken[RW]
accessTokenDuration[RW]
accessTokenExpiresAt[RW]
accessTokenResources[RW]
access_token[RW]
access_token=[RW]
access_token_duration[RW]
access_token_duration=[RW]
access_token_expires_at[RW]
access_token_expires_at=[RW]
access_token_resources[RW]
access_token_resources=[RW]
action[RW]
clientId[RW]
clientIdAlias[RW]
clientIdAliasUsed[RW]
client_id[RW]
client_id=[RW]
client_id_alias[RW]
client_id_alias=[RW]
client_id_alias_used[RW]
client_id_alias_used=[RW]
jwtAccessToken[RW]
jwt_access_token[RW]
jwt_access_token=[RW]
properties[RW]
refreshToken[RW]
refreshTokenDuration[RW]
refreshTokenExpiresAt[RW]
refresh_token[RW]
refresh_token=[RW]
refresh_token_duration[RW]
refresh_token_duration=[RW]
refresh_token_expires_at[RW]
refresh_token_expires_at=[RW]
responseContent[RW]
response_content[RW]
response_content=[RW]
scopes[RW]
subject[RW]

Private Instance Methods

defaults() click to toggle source
Calls superclass method Authlete::Model::Result#defaults
# File lib/authlete/model/response/token-issue-response.rb, line 82
def defaults
  super.merge(
    action:                nil,
    responseContent:       nil,
    accessToken:           nil,
    accessTokenExpiresAt:  0,
    accessTokenDuration:   0,
    refreshToken:          nil,
    refreshTokenExpiresAt: 0,
    refreshTokenDuration:  0,
    clientId:              0,
    clientIdAlias:         nil,
    clientIdAliasUsed:     false,
    subject:               nil,
    scopes:                nil,
    properties:            nil,
    jwtAccessToken:        nil,
    accessTokenResources:  nil
  )
end
set_params(hash) click to toggle source
Calls superclass method Authlete::Model::Result#set_params
# File lib/authlete/model/response/token-issue-response.rb, line 103
def set_params(hash)
  super(hash)

  @action                = hash[:action]
  @responseContent       = hash[:responseContent]
  @accessToken           = hash[:accessToken]
  @accessTokenExpiresAt  = hash[:accessTokenExpiresAt]
  @accessTokenDuration   = hash[:accessTokenDuration]
  @refreshToken          = hash[:refreshToken]
  @refreshTokenExpiresAt = hash[:refreshTokenExpiresAt]
  @refreshTokenDuration  = hash[:refreshTokenDuration]
  @clientId              = hash[:clientId]
  @clientIdAlias         = hash[:clientIdAlias]
  @clientIdAliasUsed     = hash[:clientIdAliasUsed]
  @subject               = hash[:subject]
  @scopes                = hash[:scopes]
  @properties            = get_parsed_array(hash[:properties]) { |e| Authlete::Model::Property.parse(e) }
  @jwtAccessToken        = hash[:jwtAccessToken]
  @accessTokenResources  = hash[:accessTokenResources]
end