Class: Stumb::Stub
- Inherits:
-
Object
- Object
- Stumb::Stub
- Defined in:
- lib/stumb/stub.rb
Instance Attribute Summary collapse
-
#stamps ⇒ Object
readonly
Returns the value of attribute stamps.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(*stub_response) ⇒ Stub
constructor
A new instance of Stub.
Constructor Details
#initialize(*stub_response) ⇒ Stub
Returns a new instance of Stub.
7 8 9 10 |
# File 'lib/stumb/stub.rb', line 7 def initialize(*stub_response) @stamps = [] @stub_response = stub_response end |
Instance Attribute Details
#stamps ⇒ Object (readonly)
Returns the value of attribute stamps.
6 7 8 |
# File 'lib/stumb/stub.rb', line 6 def stamps @stamps end |