Class: Poisol::Stub

Inherits:
Object
  • Object
show all
Defined in:
lib/poisol/stub/stub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStub



4
5
6
7
8
# File 'lib/poisol/stub/stub.rb', line 4

def initialize
  @called_count = 0
  @request = Request.new
  @response = Response.new
end

Instance Attribute Details

#called_countObject

Returns the value of attribute called_count.



3
4
5
# File 'lib/poisol/stub/stub.rb', line 3

def called_count
  @called_count
end

#requestObject

Returns the value of attribute request.



3
4
5
# File 'lib/poisol/stub/stub.rb', line 3

def request
  @request
end

#responseObject

Returns the value of attribute response.



3
4
5
# File 'lib/poisol/stub/stub.rb', line 3

def response
  @response
end