class RackReverseProxy::Errors::AmbiguousMatch

AmbiguousMatch indicates that path matched more than one endpoint

Attributes

matches[R]
path[R]

Public Class Methods

new(path, matches) click to toggle source
# File lib/rack_reverse_proxy/errors.rb, line 20
def initialize(path, matches)
  @path = path
  @matches = matches
end

Public Instance Methods

to_s() click to toggle source
# File lib/rack_reverse_proxy/errors.rb, line 25
def to_s
  %(Path "#{path}" matched multiple endpoints: #{formatted_matches})
end

Private Instance Methods

formatted_matches() click to toggle source
# File lib/rack_reverse_proxy/errors.rb, line 31
def formatted_matches
  matches.map(&:to_s).join(", ")
end