Class: Eloan::Configuration
- Inherits:
-
Object
- Object
- Eloan::Configuration
- Defined in:
- lib/eloan/configuration.rb
Instance Attribute Summary collapse
-
#app_key ⇒ Object
Returns the value of attribute app_key.
-
#app_token ⇒ Object
Returns the value of attribute app_token.
-
#bg_return_url ⇒ Object
Returns the value of attribute bg_return_url.
-
#client_name ⇒ Object
Returns the value of attribute client_name.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#env ⇒ Object
Returns the value of attribute env.
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #production? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
6 7 8 |
# File 'lib/eloan/configuration.rb', line 6 def initialize @env = 'development' end |
Instance Attribute Details
#app_key ⇒ Object
Returns the value of attribute app_key.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def app_key @app_key end |
#app_token ⇒ Object
Returns the value of attribute app_token.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def app_token @app_token end |
#bg_return_url ⇒ Object
Returns the value of attribute bg_return_url.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def bg_return_url @bg_return_url end |
#client_name ⇒ Object
Returns the value of attribute client_name.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def client_name @client_name end |
#company_name ⇒ Object
Returns the value of attribute company_name.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def company_name @company_name end |
#env ⇒ Object
Returns the value of attribute env.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def env @env end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/eloan/configuration.rb', line 3 def platform @platform end |
Instance Method Details
#production? ⇒ Boolean
10 11 12 |
# File 'lib/eloan/configuration.rb', line 10 def production? env == 'production' end |