Class: Contrast::Config::ApiProxyConfiguration
- Includes:
- BaseConfiguration
- Defined in:
- lib/contrast/config/api_proxy_configuration.rb
Overview
Api Proxy keys configuration
Constant Summary
Constants included from BaseConfiguration
BaseConfiguration::AT_UNDERSCORE
Instance Attribute Summary collapse
- #enable ⇒ Boolean, false
-
#url ⇒ String
Proxy url.
Instance Method Summary collapse
-
#initialize(hsh = {}) ⇒ ApiProxyConfiguration
constructor
A new instance of ApiProxyConfiguration.
Methods included from BaseConfiguration
Constructor Details
#initialize(hsh = {}) ⇒ ApiProxyConfiguration
Returns a new instance of ApiProxyConfiguration.
14 15 16 17 18 19 |
# File 'lib/contrast/config/api_proxy_configuration.rb', line 14 def initialize hsh = {} return unless hsh @enable = hsh[:enable] @url = hsh[:url] end |
Instance Attribute Details
#enable ⇒ Boolean, false
22 23 24 |
# File 'lib/contrast/config/api_proxy_configuration.rb', line 22 def enable @enable.nil? ? false : @enable end |
#url ⇒ String
Returns proxy url.
11 12 13 |
# File 'lib/contrast/config/api_proxy_configuration.rb', line 11 def url @url end |