Class: WorkItems::Widgets::TimeTracking

Inherits:
Base
  • Object
show all
Defined in:
app/models/work_items/widgets/time_tracking.rb

Instance Attribute Summary

Attributes inherited from Base

#widget_definition, #work_item

Class Method Summary collapse

Methods inherited from Base

api_symbol, callback_class, #initialize, process_quick_action_param, sorting_keys, sync_data_callback_class, #sync_data_callback_class, #type, type

Constructor Details

This class inherits a constructor from WorkItems::Widgets::Base

Class Method Details

.quick_action_commandsObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/models/work_items/widgets/time_tracking.rb', line 9

def self.quick_action_commands
  [
    # time estimation quick actions
    :estimate, :estimate_time,
    # remove time estimation quick actions
    :remove_estimate, :remove_time_estimate,
    # add spent time quick actions
    :spend, :spent, :spend_time,
    # remove time spent quick actions
    :remove_time_spent
  ]
end

.quick_action_paramsObject



22
23
24
# File 'app/models/work_items/widgets/time_tracking.rb', line 22

def self.quick_action_params
  [:time_estimate, :spend_time]
end