Class: HttpStub::Server::Stub::Empty
- Inherits:
-
Object
- Object
- HttpStub::Server::Stub::Empty
- Defined in:
- lib/http_stub/server/stub/empty.rb
Constant Summary collapse
- INSTANCE =
self.new.freeze
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#stub_uri ⇒ Object
readonly
Returns the value of attribute stub_uri.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def method @method end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def parameters @parameters end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def response @response end |
#stub_uri ⇒ Object (readonly)
Returns the value of attribute stub_uri.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def stub_uri @stub_uri end |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def triggers @triggers end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
18 19 20 |
# File 'lib/http_stub/server/stub/empty.rb', line 18 def uri @uri end |
Instance Method Details
#matches?(_criteria, _logger) ⇒ Boolean
20 21 22 |
# File 'lib/http_stub/server/stub/empty.rb', line 20 def matches?(_criteria, _logger) false end |
#response_for(_request) ⇒ Object
24 25 26 |
# File 'lib/http_stub/server/stub/empty.rb', line 24 def response_for(_request) self end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/http_stub/server/stub/empty.rb', line 28 def to_s "" end |