Class: Vcert::Authentication

Inherits:
Object
  • Object
show all
Defined in:
lib/utils/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

Returns the value of attribute access_token.



121
122
123
# File 'lib/utils/utils.rb', line 121

def access_token
  @access_token
end

#client_idObject

Returns the value of attribute client_id.



121
122
123
# File 'lib/utils/utils.rb', line 121

def client_id
  @client_id
end

#passwordObject

Returns the value of attribute password.



121
122
123
# File 'lib/utils/utils.rb', line 121

def password
  @password
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



121
122
123
# File 'lib/utils/utils.rb', line 121

def refresh_token
  @refresh_token
end

#scopeObject

Returns the value of attribute scope.



121
122
123
# File 'lib/utils/utils.rb', line 121

def scope
  @scope
end

#token_expiration_dateObject

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

#userObject

Returns the value of attribute user.



121
122
123
# File 'lib/utils/utils.rb', line 121

def user
  @user
end