Class: AppBridge::App
- Inherits:
-
Object
- Object
- AppBridge::App
- Defined in:
- lib/app_bridge/app.rb
Overview
An app that can be used to fetch events.
Instance Method Summary collapse
Instance Method Details
#fetch_events(context) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/app_bridge/app.rb', line 8 def fetch_events(context) response = request_events_with_timeout(context) validate_number_of_events!(response.events) validate_store_size!(response.store) response end |
#polling_timeout ⇒ Object
17 18 19 |
# File 'lib/app_bridge/app.rb', line 17 def polling_timeout 30 # seconds end |