Class: PivotalTracker::Activity

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/pivotal-tracker/activity.rb

Class Method Summary collapse

Class Method Details

.all(project = nil, options = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/pivotal-tracker/activity.rb', line 5

def all(project=nil, options={})
  params = self.encode_options(options)
  if project
    parse(Client.connection["/projects/#{project.id}/activities#{params}"].get)
  else
    parse(Client.connection["/activities#{params}"].get)
  end
end