Module: Artisan
- Defined in:
- lib/artisan.rb,
lib/artisan/base.rb,
lib/artisan/query.rb,
lib/artisan/story.rb,
lib/artisan/project.rb,
lib/artisan/iteration.rb,
lib/artisan/signoff_pdf.rb
Defined Under Namespace
Modules: Query
Classes: Base, Iteration, Project, SignoffPdf, Story
Class Method Summary
collapse
-
.get_backlog_stories(key, address = 'artisan.8thlight.com') ⇒ Object
-
.get_iterations(key, address = 'artisan.8thlight.com') ⇒ Object
-
.get_project(key, address = 'artisan.8thlight.com') ⇒ Object
-
.get_signoff_pdf(key, iteration_id, address = 'artisan.8thlight.com') ⇒ Object
-
.get_stories(key, address = 'artisan.8thlight.com') ⇒ Object
-
.get_stories_by_iteration(key, iteration_number, address = 'artisan.8thlight.com') ⇒ Object
-
.update_estimates(key, story, address = 'artisan.8thlight.com') ⇒ Object
Class Method Details
.get_backlog_stories(key, address = 'artisan.8thlight.com') ⇒ Object
51
52
53
54
55
56
57
58
59
|
# File 'lib/artisan.rb', line 51
def self.get_backlog_stories(key, address = 'artisan.8thlight.com')
response = Query.get_backlog_stories(key, address)
json_chunk = JSON::parse(response)
@stories = []
json_chunk.collect { |story_chunk| @stories << Story.new(story_chunk) }
return @stories
end
|
.get_iterations(key, address = 'artisan.8thlight.com') ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/artisan.rb', line 15
def self.get_iterations(key, address = 'artisan.8thlight.com')
response = Query.get_iterations(key, address)
json_chunk = JSON::parse(response)
@iterations = []
json_chunk.collect { |iteration_chunk| @iterations << Iteration.new(iteration_chunk) }
return @iterations
end
|
.get_project(key, address = 'artisan.8thlight.com') ⇒ Object
9
10
11
12
13
|
# File 'lib/artisan.rb', line 9
def self.get_project(key, address = 'artisan.8thlight.com')
response = Query.get_project(key, address)
json_chunk = JSON::parse(response)
return Project.new(json_chunk)
end
|
.get_signoff_pdf(key, iteration_id, address = 'artisan.8thlight.com') ⇒ Object
25
26
27
28
29
|
# File 'lib/artisan.rb', line 25
def self.get_signoff_pdf(key, iteration_id, address = 'artisan.8thlight.com')
response = Query.get_signoff_pdf(key, iteration_id, address)
return SignoffPdf.new :raw_pdf => response
end
|
.get_stories(key, address = 'artisan.8thlight.com') ⇒ Object
31
32
33
34
35
36
37
38
39
|
# File 'lib/artisan.rb', line 31
def self.get_stories(key, address = 'artisan.8thlight.com')
response = Query.get_stories(key, address)
json_chunk = JSON::parse(response)
@stories = []
json_chunk.collect { |story_chunk| @stories << Story.new(story_chunk) }
return @stories
end
|
.get_stories_by_iteration(key, iteration_number, address = 'artisan.8thlight.com') ⇒ Object
41
42
43
44
45
46
47
48
49
|
# File 'lib/artisan.rb', line 41
def self.get_stories_by_iteration(key, iteration_number, address = 'artisan.8thlight.com')
response = Query.get_stories_by_iteration(key, iteration_number, address)
json_chunk = JSON::parse(response)
@stories = []
json_chunk.collect { |story_chunk| @stories << Story.new(story_chunk) }
return @stories
end
|
.update_estimates(key, story, address = 'artisan.8thlight.com') ⇒ Object
61
62
63
|
# File 'lib/artisan.rb', line 61
def self.update_estimates(key, story, address = 'artisan.8thlight.com')
response = Query.update_estimates(key, story, address)
end
|