Class: Zm::Client::TasksCollection
Overview
Constant Summary
Base::ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary collapse
#parent
Instance Method Summary
collapse
#all, #all!, #attrs, #build_from_entry, #count, #find, #first, #method_missing, #order, #page, #per_page, #respond_to_missing?
Constructor Details
Returns a new instance of TasksCollection.
9
10
11
12
13
|
# File 'lib/zm/client/task/tasks_collection.rb', line 9
def initialize(parent)
@parent = parent
@more = true
reset_query_params
end
|
Instance Attribute Details
#more ⇒ Object
Returns the value of attribute more.
7
8
9
|
# File 'lib/zm/client/task/tasks_collection.rb', line 7
def more
@more
end
|
Instance Method Details
#end_at(end_at) ⇒ Object
26
27
28
29
|
# File 'lib/zm/client/task/tasks_collection.rb', line 26
def end_at(end_at)
@end_at = end_at
self
end
|
#folder_ids(folder_ids) ⇒ Object
37
38
39
40
|
# File 'lib/zm/client/task/tasks_collection.rb', line 37
def folder_ids(folder_ids)
@folder_ids = folder_ids
self
end
|
#folders(folders) ⇒ Object
31
32
33
34
35
|
# File 'lib/zm/client/task/tasks_collection.rb', line 31
def folders(folders)
@folders = folders
@folder_ids = @folders.map(&:id)
self
end
|
#ids ⇒ Object
47
48
49
|
# File 'lib/zm/client/task/tasks_collection.rb', line 47
def ids
search_builder.ids
end
|
#new {|task| ... } ⇒ Object
15
16
17
18
19
|
# File 'lib/zm/client/task/tasks_collection.rb', line 15
def new
task = Task.new(@parent)
yield(task) if block_given?
task
end
|
#start_at(start_at) ⇒ Object
21
22
23
24
|
# File 'lib/zm/client/task/tasks_collection.rb', line 21
def start_at(start_at)
@start_at = start_at
self
end
|
#where(query) ⇒ Object
42
43
44
45
|
# File 'lib/zm/client/task/tasks_collection.rb', line 42
def where(query)
@query = query
self
end
|