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
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#environment_location ⇒ Object
Returns the value of attribute environment_location.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
Instance Attribute Details
#customer_id ⇒ Object
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_location ⇒ Object
Returns the value of attribute environment_location.
3 4 5 |
# File 'lib/old_plaid/config.rb', line 3 def environment_location @environment_location end |
#secret ⇒ Object
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
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 |