Class: Argyle::Configuration
- Inherits:
-
Object
- Object
- Argyle::Configuration
- Defined in:
- lib/argyle/configuration.rb
Instance Attribute Summary collapse
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#env ⇒ Object
Returns the value of attribute env.
-
#key ⇒ Object
Returns the value of attribute key.
-
#long_tail ⇒ Object
Returns the value of attribute long_tail.
-
#plaid_src ⇒ Object
Returns the value of attribute plaid_src.
-
#product ⇒ Object
Returns the value of attribute product.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
- #environment_location ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/argyle/configuration.rb', line 5 def initialize @plaid_src = "https://cdn.plaid.com/link/stable/link-initialize.js" @product = 'auth' @env = 'tartan' @long_tail = false end |
Instance Attribute Details
#customer_id ⇒ Object
Returns the value of attribute customer_id.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def customer_id @customer_id end |
#env ⇒ Object
Returns the value of attribute env.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def env @env end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def key @key end |
#long_tail ⇒ Object
Returns the value of attribute long_tail.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def long_tail @long_tail end |
#plaid_src ⇒ Object
Returns the value of attribute plaid_src.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def plaid_src @plaid_src end |
#product ⇒ Object
Returns the value of attribute product.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def product @product end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/argyle/configuration.rb', line 3 def secret @secret end |
Instance Method Details
#environment_location ⇒ Object
12 13 14 15 |
# File 'lib/argyle/configuration.rb', line 12 def environment_location return "https://api.plaid.com/" if @env == 'production' "https://tartan.plaid.com/" end |