Class: Authlete::Model::Request::DeveloperAuthenticationCallbackRequest
- Inherits:
-
Object
- Object
- Authlete::Model::Request::DeveloperAuthenticationCallbackRequest
- Defined in:
- lib/authlete/model/request/developer-authentication-callback-request.rb
Instance Attribute Summary collapse
-
#accessToken ⇒ Object
(also: #access_token)
Returns the value of attribute accessToken.
-
#expiresIn ⇒ Object
(also: #expires_in)
Returns the value of attribute expiresIn.
-
#id ⇒ Object
Returns the value of attribute id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#rawTokenResponse ⇒ Object
(also: #raw_token_response)
Returns the value of attribute rawTokenResponse.
-
#refreshToken ⇒ Object
(also: #refresh_token)
Returns the value of attribute refreshToken.
-
#serviceApiKey ⇒ Object
(also: #service_api_key)
Returns the value of attribute serviceApiKey.
-
#sns ⇒ Object
Returns the value of attribute sns.
Class Method Summary collapse
-
.parse(json) ⇒ Object
Parse a JSON string which represents a request to a developer authentication callback endpoint and generate an instance of DeveloperAuthenticationCallbackRequest.
Instance Method Summary collapse
Instance Attribute Details
#accessToken ⇒ Object 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 |
#expiresIn ⇒ Object 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 |
#id ⇒ Object
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 |
#password ⇒ Object
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 |
#rawTokenResponse ⇒ Object 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 |
#refreshToken ⇒ Object 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 |
#serviceApiKey ⇒ Object 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 |
#sns ⇒ Object
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
#defaults ⇒ Object
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 |