Class: Authlete::Model::Request::DeveloperAuthenticationCallbackRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/authlete/model/request/developer-authentication-callback-request.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accessTokenObject Also known as: access_token

Returns the value of attribute accessToken.



33
34
35
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 33

def accessToken
  @accessToken
end

#expiresInObject Also known as: expires_in

Returns the value of attribute expiresIn.



41
42
43
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 41

def expiresIn
  @expiresIn
end

#idObject

Returns the value of attribute id.



27
28
29
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 27

def id
  @id
end

#passwordObject

Returns the value of attribute password.



29
30
31
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 29

def password
  @password
end

#rawTokenResponseObject Also known as: raw_token_response

Returns the value of attribute rawTokenResponse.



45
46
47
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 45

def rawTokenResponse
  @rawTokenResponse
end

#refreshTokenObject Also known as: refresh_token

Returns the value of attribute refreshToken.



37
38
39
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 37

def refreshToken
  @refreshToken
end

#serviceApiKeyObject Also known as: service_api_key

Returns the value of attribute serviceApiKey.



23
24
25
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 23

def serviceApiKey
  @serviceApiKey
end

#snsObject

Returns the value of attribute sns.



31
32
33
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 31

def sns
  @sns
end

Class Method Details

.parse(json) ⇒ Object

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



76
77
78
# File 'lib/authlete/model/request/developer-authentication-callback-request.rb', line 76

def self.parse(json)
  DeveloperAuthenticationCallbackRequest.new(JSON.parse(json))
end

Instance Method Details

#defaultsObject



49
50
51
52
53
54
55
56
57
58
59
60
# 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) ⇒ Object



62
63
64
65
66
67
68
69
70
71
# 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