Class: CapybaraMock::Interceptor::Base
- Inherits:
-
Object
- Object
- CapybaraMock::Interceptor::Base
- Defined in:
- lib/capybara_mock/interceptor/base.rb
Overview
Base interceptor class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stubs ⇒ Object
readonly
Returns the value of attribute stubs.
-
#unstubbed_requests ⇒ Object
readonly
Returns the value of attribute unstubbed_requests.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/capybara_mock/interceptor/base.rb', line 9 def initialize @stubs = [] @unstubbed_requests = [] end |
Instance Attribute Details
#stubs ⇒ Object (readonly)
Returns the value of attribute stubs.
7 8 9 |
# File 'lib/capybara_mock/interceptor/base.rb', line 7 def stubs @stubs end |
#unstubbed_requests ⇒ Object (readonly)
Returns the value of attribute unstubbed_requests.
7 8 9 |
# File 'lib/capybara_mock/interceptor/base.rb', line 7 def unstubbed_requests @unstubbed_requests end |