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.
121 122 123 124 125 126 127 128 129 |
# File 'lib/utils/utils.rb', line 121 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.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def access_token @access_token end |
#client_id ⇒ Object
Returns the value of attribute client_id.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def client_id @client_id end |
#password ⇒ Object
Returns the value of attribute password.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def password @password end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def refresh_token @refresh_token end |
#scope ⇒ Object
Returns the value of attribute scope.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def scope @scope end |
#token_expiration_date ⇒ Object
Returns the value of attribute token_expiration_date.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def token_expiration_date @token_expiration_date end |
#user ⇒ Object
Returns the value of attribute user.
119 120 121 |
# File 'lib/utils/utils.rb', line 119 def user @user end |