Module: OldPlaid::Configure

Included in:
OldPlaid
Defined in:
lib/old_plaid/config.rb

Constant Summary collapse

KEYS =
[:customer_id, :secret, :environment_location]

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#customer_idObject

Returns the value of attribute customer_id.



3
4
5
# File 'lib/old_plaid/config.rb', line 3

def customer_id
  @customer_id
end

#environment_locationObject

Returns the value of attribute environment_location.



3
4
5
# File 'lib/old_plaid/config.rb', line 3

def environment_location
  @environment_location
end

#secretObject

Returns the value of attribute secret.



3
4
5
# File 'lib/old_plaid/config.rb', line 3

def secret
  @secret
end

Instance Method Details

#config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
12
13
14
15
16
# File 'lib/old_plaid/config.rb', line 7

def config
  yield self

  # Add trailing slash to api url if it is not present
  if self.environment_location[-1] != '/'
    self.environment_location += '/'
  end

  self
end