Class: HttpStub::Server::Stub::Match::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/stub/match/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (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

#responseObject (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

#stubObject (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