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
-
#match_rules ⇒ Object
readonly
Returns the value of attribute match_rules.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#stub_id ⇒ Object
readonly
Returns the value of attribute stub_id.
-
#triggers ⇒ Object
readonly
Returns the value of attribute triggers.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #matches?(_criteria, _logger) ⇒ Boolean
- #response_for(_request) ⇒ Object
- #to_hash ⇒ Object
- #to_s ⇒ Object
Instance Attribute Details
#match_rules ⇒ Object (readonly)
Returns the value of attribute match_rules.
19 20 21 |
# File 'lib/http_stub/server/stub/empty.rb', line 19 def match_rules @match_rules end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
19 20 21 |
# File 'lib/http_stub/server/stub/empty.rb', line 19 def response @response end |
#stub_id ⇒ Object (readonly)
Returns the value of attribute stub_id.
19 20 21 |
# File 'lib/http_stub/server/stub/empty.rb', line 19 def stub_id @stub_id end |
#triggers ⇒ Object (readonly)
Returns the value of attribute triggers.
19 20 21 |
# File 'lib/http_stub/server/stub/empty.rb', line 19 def triggers @triggers end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
19 20 21 |
# File 'lib/http_stub/server/stub/empty.rb', line 19 def uri @uri end |
Instance Method Details
#matches?(_criteria, _logger) ⇒ Boolean
21 22 23 |
# File 'lib/http_stub/server/stub/empty.rb', line 21 def matches?(_criteria, _logger) false end |
#response_for(_request) ⇒ Object
25 26 27 |
# File 'lib/http_stub/server/stub/empty.rb', line 25 def response_for(_request) self end |
#to_hash ⇒ Object
29 30 31 |
# File 'lib/http_stub/server/stub/empty.rb', line 29 def to_hash {} end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/http_stub/server/stub/empty.rb', line 33 def to_s "" end |