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,
lib/artisan/iteration_total_billed_points_by_craftsman.rb
Defined Under Namespace
Modules: Query
Classes: Base, Iteration, IterationTotalBilledPointsByCraftsman, Project, SignoffPdf, Story
Class Method Summary
collapse
-
.authenticate(username, password, address = 'artisan.8thlight.com') ⇒ Object
-
.get_backlog_stories(key, address = 'artisan.8thlight.com') ⇒ Object
-
.get_iteration_total_billed_points_by_craftsman(key, iteration_number, 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
.authenticate(username, password, address = 'artisan.8thlight.com') ⇒ Object
72
73
74
75
|
# File 'lib/artisan.rb', line 72
def self.authenticate(username, password, address = 'artisan.8thlight.com')
response = Query.authenticate(username, password, address)
JSON::parse(response)["success"]
end
|
.get_backlog_stories(key, address = 'artisan.8thlight.com') ⇒ Object
58
59
60
61
62
63
64
65
66
|
# File 'lib/artisan.rb', line 58
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_iteration_total_billed_points_by_craftsman(key, iteration_number, address = 'artisan.8thlight.com') ⇒ Object
26
27
28
29
30
|
# File 'lib/artisan.rb', line 26
def self.get_iteration_total_billed_points_by_craftsman(key, iteration_number, address = 'artisan.8thlight.com')
response = Query.get_iteration_total_billed_points_by_craftsman(key, iteration_number, address)
json_chunk = JSON::parse(response)
return IterationTotalBilledPointsByCraftsman.new(json_chunk)
end
|
.get_iterations(key, address = 'artisan.8thlight.com') ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/artisan.rb', line 16
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
10
11
12
13
14
|
# File 'lib/artisan.rb', line 10
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
32
33
34
35
36
|
# File 'lib/artisan.rb', line 32
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
38
39
40
41
42
43
44
45
46
|
# File 'lib/artisan.rb', line 38
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
48
49
50
51
52
53
54
55
56
|
# File 'lib/artisan.rb', line 48
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
68
69
70
|
# File 'lib/artisan.rb', line 68
def self.update_estimates(key, story, address = 'artisan.8thlight.com')
response = Query.update_estimates(key, story, address)
end
|