Class: Asana::Resources::EventsBase
- Defined in:
- lib/asana/resources/gen/events_base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.get_events(client, resource: nil, sync: nil, options: {}) ⇒ Object
resource - [str] (required) A resource ID to subscribe to.
- .inherited(base) ⇒ Object
Methods inherited from Resource
#initialize, #method_missing, #refresh, #respond_to_missing?, #to_h, #to_s
Methods included from ResponseHelper
Constructor Details
This class inherits a constructor from Asana::Resources::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Asana::Resources::Resource
Class Method Details
.get_events(client, resource: nil, sync: nil, options: {}) ⇒ Object
resource - [str] (required) A resource ID to subscribe to. The resource can be a task or project.
23 24 25 26 27 |
# File 'lib/asana/resources/gen/events_base.rb', line 23 def get_events(client, resource: nil, sync: nil, options: {}) path = "/events" params = { resource: resource, sync: sync }.reject { |_,v| v.nil? || Array(v).empty? } Collection.new(parse(client.get(path, params: params, options: )), type: Resource, client: client) end |