Class: Contrast::Config::ApiProxyConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from BaseConfiguration

#to_contrast_hash

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

#enableBoolean, false

Returns:

  • (Boolean, false)


22
23
24
# File 'lib/contrast/config/api_proxy_configuration.rb', line 22

def enable
  @enable.nil? ? false : @enable
end

#urlString

Returns proxy url.

Returns:



11
12
13
# File 'lib/contrast/config/api_proxy_configuration.rb', line 11

def url
  @url
end