Module: Plaid

Defined in:
lib/plaid.rb,
lib/DinnerLab_Plaid/client/configuration.rb

Overview

this is for initiating the plaid object as a module

Defined Under Namespace

Modules: Configurations

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



6
7
8
# File 'lib/plaid.rb', line 6

def access_token
  @access_token
end

.emailObject

Returns the value of attribute email.



6
7
8
# File 'lib/plaid.rb', line 6

def email
  @email
end

.endpointObject

Returns the value of attribute endpoint.



6
7
8
# File 'lib/plaid.rb', line 6

def endpoint
  @endpoint
end

.institutionObject

Returns the value of attribute institution.



6
7
8
# File 'lib/plaid.rb', line 6

def institution
  @institution
end

.is_mfa_initializedObject

Returns the value of attribute is_mfa_initialized.



6
7
8
# File 'lib/plaid.rb', line 6

def is_mfa_initialized
  @is_mfa_initialized
end

.mfa_messageObject

Returns the value of attribute mfa_message.



6
7
8
# File 'lib/plaid.rb', line 6

def mfa_message
  @mfa_message
end

.mfa_responseObject

Returns the value of attribute mfa_response.



6
7
8
# File 'lib/plaid.rb', line 6

def mfa_response
  @mfa_response
end

.mfa_typeObject

Returns the value of attribute mfa_type.



6
7
8
# File 'lib/plaid.rb', line 6

def mfa_type
  @mfa_type
end

.passwordObject

Returns the value of attribute password.



6
7
8
# File 'lib/plaid.rb', line 6

def password
  @password
end

.secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/plaid.rb', line 6

def secret
  @secret
end

.usernameObject

Returns the value of attribute username.



6
7
8
# File 'lib/plaid.rb', line 6

def username
  @username
end

Class Method Details

.client(username, email, password, institution, access_token = nil) ⇒ Object

client used to initialize access through Plaid



9
10
11
12
13
14
15
16
17
18
# File 'lib/plaid.rb', line 9

def client(username, email, password, institution, access_token = nil)
	self.username = username
	self.email = email
	self.password = password
	self.institution = institution
	self.access_token = access_token unless access_token.blank?
	self.mfa_response ||= []

	puts "Plaid client was made!"
end