class Authlete::Model::Request::DeveloperAuthenticationCallbackRequest

Attributes

accessToken[RW]
access_token[RW]
access_token=[RW]
expiresIn[RW]
expires_in[RW]
expires_in=[RW]
id[RW]
password[RW]
rawTokenResponse[RW]
raw_token_response[RW]
raw_token_response=[RW]
refreshToken[RW]
refresh_token[RW]
refresh_token=[RW]
serviceApiKey[RW]
service_api_key[RW]
service_api_key=[RW]
sns[RW]

Public Class Methods

parse(json) click to toggle source

Parse a JSON string which represents a request to a developer authentication callback endpoint and generate an instance of DeveloperAuthenticationCallbackRequest.

# File lib/authlete/model/request/developer-authentication-callback-request.rb, line 76
def self.parse(json)
  DeveloperAuthenticationCallbackRequest.new(JSON.parse(json))
end

Public Instance Methods

defaults() click to toggle source
# File lib/authlete/model/request/developer-authentication-callback-request.rb, line 49
def defaults
  {
    serviceApiKey:    nil,
    id:               nil,
    password:         nil,
    sns:              nil,
    accessToken:      nil,
    refreshToken:     nil,
    expiresIn:        0,
    rawTokenResponse: nil
  }
end
set_params(hash) click to toggle source
# File lib/authlete/model/request/developer-authentication-callback-request.rb, line 62
def set_params(hash)
  @serviceApiKey    = hash[:serviceApiKey]
  @id               = hash[:id]
  @password         = hash[:password]
  @sns              = hash[:sns]
  @accessToken      = hash[:accessToken]
  @refreshToken     = hash[:refreshToken]
  @expiresIn        = hash[:expiresIn]
  @rawTokenResponse = hash[:rawTokenResponse]
end