A new instance of Resource.
Returns a new instance of Resource.
7 8 9
# File 'lib/matchers/resource.rb', line 7 def initialize( options ) @matcher = Waves::Matchers::Request.new( options ) end
12
# File 'lib/matchers/resource.rb', line 12 def []( *args ) ; call( *args ) ; end
11
# File 'lib/matchers/resource.rb', line 11 def call( resource ) ; @matcher.call( resource.request ) ; end