Class: Poisol::Stub
- Inherits:
-
Object
- Object
- Poisol::Stub
- Defined in:
- lib/poisol/stub/stub.rb
Instance Attribute Summary collapse
-
#called_count ⇒ Object
Returns the value of attribute called_count.
-
#request ⇒ Object
Returns the value of attribute request.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize ⇒ Stub
constructor
A new instance of Stub.
Constructor Details
#initialize ⇒ Stub
Returns a new instance of Stub.
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_count ⇒ Object
Returns the value of attribute called_count.
3 4 5 |
# File 'lib/poisol/stub/stub.rb', line 3 def called_count @called_count end |
#request ⇒ Object
Returns the value of attribute request.
3 4 5 |
# File 'lib/poisol/stub/stub.rb', line 3 def request @request end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/poisol/stub/stub.rb', line 3 def response @response end |