Method: Toggl#create_project
- Defined in:
- lib/toggl.rb
#create_project(params = {}, workspace = nil) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/toggl.rb', line 38 def create_project(params={}, workspace=nil) workspace ||= default_workspace_id if project = post("projects", :project => {:name => params[:project], :workspace => {:id => workspace}, :billable => (params[:billable] || true)}) project["id"] end end |