Class: Jirawatch::Strings
- Inherits:
-
Object
- Object
- Jirawatch::Strings
- Defined in:
- lib/jirawatch/strings.rb
Instance Attribute Summary collapse
-
#error_empty_worklog ⇒ Object
readonly
Returns the value of attribute error_empty_worklog.
-
#error_invalid_tracking_start ⇒ Object
readonly
Returns the value of attribute error_invalid_tracking_start.
-
#error_login_info_not_found ⇒ Object
readonly
Returns the value of attribute error_login_info_not_found.
-
#tracking_cli_inputs ⇒ Object
readonly
Returns the value of attribute tracking_cli_inputs.
-
#tracking_cli_name ⇒ Object
readonly
Returns the value of attribute tracking_cli_name.
-
#tracking_cli_time ⇒ Object
readonly
Returns the value of attribute tracking_cli_time.
-
#tracking_file_content ⇒ Object
readonly
Returns the value of attribute tracking_file_content.
-
#tracking_less_than_60_secs ⇒ Object
readonly
Returns the value of attribute tracking_less_than_60_secs.
-
#tracking_paused ⇒ Object
readonly
Returns the value of attribute tracking_paused.
-
#tracking_restarted ⇒ Object
readonly
Returns the value of attribute tracking_restarted.
Instance Method Summary collapse
-
#initialize ⇒ Strings
constructor
A new instance of Strings.
Constructor Details
#initialize ⇒ Strings
Returns a new instance of Strings.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/jirawatch/strings.rb', line 15 def initialize @tracking_file_content = [ "", "# You spent %d minutes on this issue", "# Write here your work log description", "# If you leave this empty, no work log will be saved" ].join "\n" @tracking_cli_name = "Logging time for %s: %s" @tracking_cli_time = [ "Started at: %s", "Time logged / Original Estimate: %dh %dm / %dh %dm", ].join "\n" @tracking_cli_inputs = [ "Press CTRL-P to pause/restart tracking time", "Press CTRL-C to stop tracking time" ].join "\n" @tracking_paused = [ "", "Tracking has been paused with %d %s logged" ].join "\n" @tracking_restarted = [ "", "Tracking has been restarted", ].join "\n" @tracking_less_than_60_secs = "Jira can't log less than 60 seconds of work" @error_empty_worklog = "Worklog was empty, time was not tracked" @error_invalid_tracking_start = "Could not start tracking in a future time" @error_login_info_not_found = [ "Login info not found, please use:", "", "jirawatch login", "" ].join "\n" end |
Instance Attribute Details
#error_empty_worklog ⇒ Object (readonly)
Returns the value of attribute error_empty_worklog.
11 12 13 |
# File 'lib/jirawatch/strings.rb', line 11 def error_empty_worklog @error_empty_worklog end |
#error_invalid_tracking_start ⇒ Object (readonly)
Returns the value of attribute error_invalid_tracking_start.
12 13 14 |
# File 'lib/jirawatch/strings.rb', line 12 def error_invalid_tracking_start @error_invalid_tracking_start end |
#error_login_info_not_found ⇒ Object (readonly)
Returns the value of attribute error_login_info_not_found.
13 14 15 |
# File 'lib/jirawatch/strings.rb', line 13 def error_login_info_not_found @error_login_info_not_found end |
#tracking_cli_inputs ⇒ Object (readonly)
Returns the value of attribute tracking_cli_inputs.
7 8 9 |
# File 'lib/jirawatch/strings.rb', line 7 def tracking_cli_inputs @tracking_cli_inputs end |
#tracking_cli_name ⇒ Object (readonly)
Returns the value of attribute tracking_cli_name.
5 6 7 |
# File 'lib/jirawatch/strings.rb', line 5 def tracking_cli_name @tracking_cli_name end |
#tracking_cli_time ⇒ Object (readonly)
Returns the value of attribute tracking_cli_time.
6 7 8 |
# File 'lib/jirawatch/strings.rb', line 6 def tracking_cli_time @tracking_cli_time end |
#tracking_file_content ⇒ Object (readonly)
Returns the value of attribute tracking_file_content.
4 5 6 |
# File 'lib/jirawatch/strings.rb', line 4 def tracking_file_content @tracking_file_content end |
#tracking_less_than_60_secs ⇒ Object (readonly)
Returns the value of attribute tracking_less_than_60_secs.
10 11 12 |
# File 'lib/jirawatch/strings.rb', line 10 def tracking_less_than_60_secs @tracking_less_than_60_secs end |
#tracking_paused ⇒ Object (readonly)
Returns the value of attribute tracking_paused.
8 9 10 |
# File 'lib/jirawatch/strings.rb', line 8 def tracking_paused @tracking_paused end |
#tracking_restarted ⇒ Object (readonly)
Returns the value of attribute tracking_restarted.
9 10 11 |
# File 'lib/jirawatch/strings.rb', line 9 def tracking_restarted @tracking_restarted end |