Exception: Rack::AmbiguousProxyMatch

Inherits:
Exception
  • Object
show all
Defined in:
lib/rack/reverse_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, matches) ⇒ AmbiguousProxyMatch

Returns a new instance of AmbiguousProxyMatch.



127
128
129
130
# File 'lib/rack/reverse_proxy.rb', line 127

def initialize(path, matches)
  @path = path
  @matches = matches
end

Instance Attribute Details

#matchesObject (readonly)

Returns the value of attribute matches.



126
127
128
# File 'lib/rack/reverse_proxy.rb', line 126

def matches
  @matches
end

#pathObject (readonly)

Returns the value of attribute path.



126
127
128
# File 'lib/rack/reverse_proxy.rb', line 126

def path
  @path
end

Instance Method Details

#to_sObject



132
133
134
# File 'lib/rack/reverse_proxy.rb', line 132

def to_s
  %Q(Path "#{path}" matched multiple endpoints: #{formatted_matches})
end