class UAT::Discovery::Configuration
Public Class Methods
new(config_hash)
click to toggle source
@param config_hash [Hash]
# File lib/uat/discovery/configuration.rb, line 5 def initialize(config_hash) @config_hash = config_hash end
Public Instance Methods
append_service_path()
click to toggle source
@return [String] path that will be appended to discovery host/port, no matter what service name
# File lib/uat/discovery/configuration.rb, line 30 def append_service_path @config_hash['append_service_path'] end
discover_paths?()
click to toggle source
@return [Boolean]
# File lib/uat/discovery/configuration.rb, line 20 def discover_paths? @config_hash['discover_paths'] end
local_mode?()
click to toggle source
@return [Boolean]
# File lib/uat/discovery/configuration.rb, line 15 def local_mode? @config_hash['local_mode'] end
local_service_urls_keyed_by_service_name()
click to toggle source
@return [Hash<String, Array<String>>]
# File lib/uat/discovery/configuration.rb, line 10 def local_service_urls_keyed_by_service_name @config_hash['local_service_urls_keyed_by_service_name'] end
metadata_property_for_path()
click to toggle source
@return [String] the property name in discovery key/value metadata hash containing a service's path
# File lib/uat/discovery/configuration.rb, line 40 def metadata_property_for_path @config_hash['metadata_property_for_path'] end
protocol()
click to toggle source
@return [String]
# File lib/uat/discovery/configuration.rb, line 25 def protocol @config_hash['protocol'] end
service_metadata_key_value_prefix()
click to toggle source
@return [String] the prefix to prepend to a service name, used to retrieve discovery key value requests for a service
# File lib/uat/discovery/configuration.rb, line 35 def service_metadata_key_value_prefix @config_hash['service_metadata_key_value_prefix'] end
url()
click to toggle source
@return [String]
# File lib/uat/discovery/configuration.rb, line 45 def url @config_hash['url'] end