Method: Asana::Resources::Events#initialize
- Defined in:
- lib/asana/resource_includes/events.rb
#initialize(resource: required('resource'), client: required('client'), wait: 1, options: {}) ⇒ Events
Initializes a new Events instance, subscribed to a resource ID.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/asana/resource_includes/events.rb', line 35 def initialize(resource: required('resource'), client: required('client'), wait: 1, options: {}) @resource = resource @client = client @events = [] @wait = wait = @sync = nil @last_poll = nil end |