Class: Waves::Matchers::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/matchers/resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ 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

Instance Method Details

#[](*args) ⇒ Object



12
# File 'lib/matchers/resource.rb', line 12

def []( *args ) ; call( *args ) ; end

#call(resource) ⇒ Object



11
# File 'lib/matchers/resource.rb', line 11

def call( resource ) ; @matcher.call( resource.request ) ; end