Sha256: 651e6f58975cdcdba78375ad378cf6164f49cfd5cc6ac7395cbb74dddc4077c5
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
module Teamwork class Client module Notebook # GET all notebooks # This method is a bit different as the response nests notebooks under # projects, which itself is an array. Once the projects are parsed, # lets map those and save the notebooks to an array # options: # includeContent: Boolean (default false) # return: [Teamwork::Thing] def get_notebooks(options = {}) objects_from_response(:get, "notebooks", "projects", options) .map { |project| project.notebooks.map { |notebook| Teamwork::Thing.new(notebook) }}.flatten end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teamworkpm-2.0.0 | lib/teamwork/client/notebook.rb |