Sha256: d8913a9aee71150571281bfe006cb794f69cac00854a2898352c0f39e9ced3c5

Contents?: true

Size: 403 Bytes

Versions: 13

Compression:

Stored size: 403 Bytes

Contents

require_relative 'events'

module Asana
  module Resources
    # Public: Mixin to enable a resource with the ability to fetch events about
    # itself.
    module EventSubscription
      # Public: Returns an infinite collection of events on the resource.
      def events(wait: 1, options: {})
        Events.new(resource: gid, client: client, wait: wait, options: options)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
asana-2.0.1 lib/asana/resource_includes/event_subscription.rb
asana-2.0.0 lib/asana/resource_includes/event_subscription.rb
asana-1.0.0 lib/asana/resource_includes/event_subscription.rb
asana-0.10.13 lib/asana/resource_includes/event_subscription.rb
asana-0.10.12 lib/asana/resource_includes/event_subscription.rb
asana-0.10.3 lib/asana/resource_includes/event_subscription.rb
asana-0.10.2 lib/asana/resource_includes/event_subscription.rb
asana-0.10.1 lib/asana/resource_includes/event_subscription.rb
asana-0.10.0 lib/asana/resource_includes/event_subscription.rb
asana-0.9.3 lib/asana/resource_includes/event_subscription.rb
asana-0.9.2 lib/asana/resource_includes/event_subscription.rb
asana-0.9.1 lib/asana/resource_includes/event_subscription.rb
asana-0.9.0 lib/asana/resource_includes/event_subscription.rb