Class: Basecamp::Category

Inherits:
Base
  • Object
show all
Defined in:
lib/basecamp/category.rb

Overview

</category>

Constant Summary collapse

TYPE =
[:post, :attchment]

Class Method Summary collapse

Methods inherited from Base

establish_connection!

Class Method Details

.createObject

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