Module: ClickUp::Tasks::Factory

Defined in:
lib/click_up/tasks/factory.rb

Class Method Summary collapse

Class Method Details

.build_collection(items) ⇒ Object

Parameters:

  • items (Array)

    An array of objects containing Task fields



11
12
13
# File 'lib/click_up/tasks/factory.rb', line 11

def build_collection(items)
  items.map { |task| Task.new(task) }
end