Class: PolarBear::Command::Report
- Inherits:
-
Object
- Object
- PolarBear::Command::Report
- Defined in:
- lib/polarbear/command/report.rb
Overview
Instance Method Summary collapse
- #get_review_with_title_for(username, title) ⇒ Object
-
#initialize ⇒ Report
constructor
A new instance of Report.
- #request_active_report_for(username) ⇒ Object
- #request_report_in_planning_for(username) ⇒ Object
Constructor Details
#initialize ⇒ Report
Returns a new instance of Report.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/polarbear/command/report.rb', line 11 def initialize @default_args = { ':page' => 'ReportReviewList', ':formSubmittedreportConfig' => 1, ':fileCountVis' => 'y', ':numDefectsVis' => 'y', ':phaseVis' => 'y', ':reviewAuthorUserNameVis' => 'y', ':reviewCreationDateVis' => 'y', ':reviewCreatorUserLoginVis' => 'y', ':reviewIdVis' => 'y', ':reviewTitleVis' => 'y', ':review_idleVis' => 'y', ':reviewerDurationVis' => 'y', ':sort0_col' => 'reviewId', ':sort0_order' => 'desc', ':data-format' => 'csv' } end |
Instance Method Details
#get_review_with_title_for(username, title) ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'lib/polarbear/command/report.rb', line 49 def get_review_with_title_for(username, title) args = generate_args args[':participantFilter'] = username args[':phaseFilter'] = 'Planning' args[':reviewTitleFilter'] = "target%3D#{URI::encode title}%7C%7C%7Ctype%3Dcontains" execute_report_request(args) end |
#request_active_report_for(username) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/polarbear/command/report.rb', line 31 def request_active_report_for(username) args = generate_args args[':participantFilter'] = username args[':phaseFilter'] = 'inprogress' execute_report_request(args) end |
#request_report_in_planning_for(username) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/polarbear/command/report.rb', line 40 def request_report_in_planning_for(username) args = generate_args args[':participantFilter'] = username args[':phaseFilter'] = 'Planning' execute_report_request(args) end |