Class: Alice::Adapter::Test::Stub
- Defined in:
- lib/alice/adapter/test.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#body ⇒ Object
Returns the value of attribute body.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
61 62 63 |
# File 'lib/alice/adapter/test.rb', line 61 def block @block end |
#body ⇒ Object
Returns the value of attribute body
61 62 63 |
# File 'lib/alice/adapter/test.rb', line 61 def body @body end |
#path ⇒ Object
Returns the value of attribute path
61 62 63 |
# File 'lib/alice/adapter/test.rb', line 61 def path @path end |
Instance Method Details
#matches?(request_path, request_body) ⇒ Boolean
62 63 64 |
# File 'lib/alice/adapter/test.rb', line 62 def matches?(request_path, request_body) request_path == path && request_body == body end |