Class: Qeweney::TestAdapter
- Inherits:
-
Object
- Object
- Qeweney::TestAdapter
- Defined in:
- lib/qeweney/test_adapter.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/qeweney/test_adapter.rb', line 5 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/qeweney/test_adapter.rb', line 5 def headers @headers end |
Class Method Details
Instance Method Details
#get_body_chunk ⇒ Object
7 8 9 |
# File 'lib/qeweney/test_adapter.rb', line 7 def get_body_chunk nil end |
#respond(req, body, headers) ⇒ Object
11 12 13 14 |
# File 'lib/qeweney/test_adapter.rb', line 11 def respond(req, body, headers) @body = body @headers = headers end |