Class: Alice::Adapter::Test::Stub

Inherits:
Struct
  • Object
show all
Defined in:
lib/alice/adapter/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



58
59
60
# File 'lib/alice/adapter/test.rb', line 58

def block
  @block
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



58
59
60
# File 'lib/alice/adapter/test.rb', line 58

def path
  @path
end

Instance Method Details

#matches?(request_path) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
# File 'lib/alice/adapter/test.rb', line 59

def matches?(request_path)
  request_path == path
end