Class: UAT::Discovery::ConfiguredSinglePathProvider

Inherits:
Interfaces::IPathProvider show all
Defined in:
lib/uat/discovery/configured_path_provider.rb

Instance Method Summary collapse

Constructor Details

#initialize(append_service_path) ⇒ ConfiguredSinglePathProvider

Returns a new instance of ConfiguredSinglePathProvider.

Parameters:

  • append_service_path (String)

    the path (if any) to append after the domain and port. Should include leading slash /



5
6
7
# File 'lib/uat/discovery/configured_path_provider.rb', line 5

def initialize(append_service_path)
  @append_service_path = append_service_path
end

Instance Method Details

#path_to_append_for(service_name) ⇒ String

Parameters:

  • service_name (String)

    the name of the service for which one would like to get the path - ignored

Returns:

  • (String)


11
12
13
# File 'lib/uat/discovery/configured_path_provider.rb', line 11

def path_to_append_for(service_name)
  @append_service_path
end