Class: BaseCradle::TasksResource

Inherits:
ItemsResource show all
Defined in:
lib/basecradle/items.rb

Overview

Tasks from every timeline you can view, newest first.

Constant Summary collapse

PATH =
"/tasks"
PLURAL =
"tasks"
SINGULAR =
"task"
MODEL =
Task

Instance Method Summary collapse

Methods inherited from ItemsResource

#each, #get, #initialize

Constructor Details

This class inherits a constructor from BaseCradle::ItemsResource

Instance Method Details

#filter(timeline: nil, status: nil) ⇒ Object

Narrow by timeline and/or status (“pending” | “activated” | “blocked_timeline_locked”).



131
132
133
134
135
# File 'lib/basecradle/items.rb', line 131

def filter(timeline: nil, status: nil)
  filters = merge_filters(timeline: timeline)
  filters["status"] = status unless status.nil?
  self.class.new(@client, filters: filters)
end