Class: Waves::Matchers::URI
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(options) ⇒ URI
constructor
A new instance of URI.
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ URI
Returns a new instance of URI.
7 8 9 10 |
# File 'lib/matchers/uri.rb', line 7 def initialize( ) @path = Waves::Matchers::Path.new( [ :path ] ) @constraints = { :server => [ :server ], :scheme => [ :scheme ] } end |
Instance Method Details
#call(request) ⇒ Object
12 13 14 |
# File 'lib/matchers/uri.rb', line 12 def call( request ) @path.call( request ) if test( request ) end |