Class: Vcert::Authentication
- Inherits:
-
Object
- Object
- Vcert::Authentication
- Defined in:
- lib/utils/utils.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_expiration_date ⇒ Object
Returns the value of attribute token_expiration_date.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(access_token: nil, refresh_token: nil, user: nil, password: nil, expiration_date: nil, client_id: CLIENT_ID, scope: SCOPE) ⇒ Authentication
constructor
A new instance of Authentication.
Constructor Details
#initialize(access_token: nil, refresh_token: nil, user: nil, password: nil, expiration_date: nil, client_id: CLIENT_ID, scope: SCOPE) ⇒ Authentication
Returns a new instance of Authentication.
123 124 125 126 127 128 129 130 131 |
# File 'lib/utils/utils.rb', line 123 def initialize (access_token: nil, refresh_token: nil, user: nil, password: nil, expiration_date: nil, client_id: CLIENT_ID, scope: SCOPE) @access_token = access_token @refresh_token = refresh_token @user = user @password = password @token_expiration_date = expiration_date @client_id = client_id @scope = scope end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def access_token @access_token end |
#client_id ⇒ Object
Returns the value of attribute client_id.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def client_id @client_id end |
#password ⇒ Object
Returns the value of attribute password.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def password @password end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def refresh_token @refresh_token end |
#scope ⇒ Object
Returns the value of attribute scope.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def scope @scope end |
#token_expiration_date ⇒ Object
Returns the value of attribute token_expiration_date.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def token_expiration_date @token_expiration_date end |
#user ⇒ Object
Returns the value of attribute user.
121 122 123 |
# File 'lib/utils/utils.rb', line 121 def user @user end |