Class: PollEverywhere::HTTP::Adapter::Test
- Inherits:
-
Object
- Object
- PollEverywhere::HTTP::Adapter::Test
- Defined in:
- lib/polleverywhere/http/adapter.rb
Instance Method Summary collapse
Instance Method Details
#execute(request, &block) ⇒ Object
47 48 49 50 |
# File 'lib/polleverywhere/http/adapter.rb', line 47 def execute(request, &block) requests << request block.call(Response.new) end |
#requests ⇒ Object
52 53 54 |
# File 'lib/polleverywhere/http/adapter.rb', line 52 def requests @requests ||= [] end |