Class: PivotalSync::Story

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/pivotal_sync/story.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all(project_id) ⇒ Object



8
9
10
# File 'lib/pivotal_sync/story.rb', line 8

def all(project_id)
  parse(Client.connection["projects/#{project_id}/stories"].get)
end

.find(id) ⇒ Object



12
13
14
# File 'lib/pivotal_sync/story.rb', line 12

def find(id)
  parse(Client.connection["stories/#{id}"].get)
end

Instance Method Details

#projectObject



37
38
39
# File 'lib/pivotal_sync/story.rb', line 37

def project
  Project.find(project_id)
end