Class: Basecamp::Category
- Defined in:
- lib/basecamp/category.rb
Overview
</category>
Constant Summary collapse
- TYPE =
[:post, :attchment]
Class Method Summary collapse
-
.create ⇒ Object
Type is required TODO.
- .in_project(project_id, type = nil) ⇒ Object
Methods inherited from Base
Class Method Details
.create ⇒ Object
Type is required TODO
21 22 23 |
# File 'lib/basecamp/category.rb', line 21 def self.create end |
.in_project(project_id, type = nil) ⇒ Object
14 15 16 17 |
# File 'lib/basecamp/category.rb', line 14 def self.in_project(project_id, type = nil) params = type.present? ? {:type => type} : {} find(:all, :from => "/projects/#{project_id}/categories.xml", :params => params) end |