Class: HttpStub::Server::Stub::Match::Result
- Inherits:
-
Object
- Object
- HttpStub::Server::Stub::Match::Result
- Defined in:
- lib/http_stub/server/stub/match/result.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#stub ⇒ Object
readonly
Returns the value of attribute stub.
Instance Method Summary collapse
-
#initialize(request, response, stub) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(request, response, stub) ⇒ Result
Returns a new instance of Result.
10 11 12 13 14 |
# File 'lib/http_stub/server/stub/match/result.rb', line 10 def initialize(request, response, stub) @request = request @response = response @stub = stub end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
8 9 10 |
# File 'lib/http_stub/server/stub/match/result.rb', line 8 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/http_stub/server/stub/match/result.rb', line 8 def response @response end |
#stub ⇒ Object (readonly)
Returns the value of attribute stub.
8 9 10 |
# File 'lib/http_stub/server/stub/match/result.rb', line 8 def stub @stub end |