module DocumentCloud::API::CreateProject
Constants
- PROJECTS_PATH
Public Instance Methods
create_project(title, options={})
click to toggle source
Create new project
@see www.documentcloud.org/help/api @param title [String] The document's canonical title @param options [Hash] Customizable set of options @param options [String] :description A paragraph of detailed description @param options [Array] :document_ids A list of documents that the project contains, by id @returns [DocumentCloud::Project] The project created
# File lib/document_cloud/api/create_project.rb, line 15 def create_project(title, options={}) build_object DocumentCloud::Project, post(PROJECTS_PATH, options.merge(title: title)) end