module Artisan
Public Class Methods
authenticate(username, password, address = 'artisan.8thlight.com')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# 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')
click to toggle source
# File lib/artisan.rb, line 68 def self.update_estimates(key, story, address = 'artisan.8thlight.com') response = Query.update_estimates(key, story, address) end