2022-07-23 23:45:48 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module WorkItems
|
|
|
|
module Widgets
|
|
|
|
class Base
|
|
|
|
def self.type
|
|
|
|
name.demodulize.underscore.to_sym
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.api_symbol
|
|
|
|
"#{type}_widget".to_sym
|
|
|
|
end
|
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
def self.quick_action_commands
|
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
def type
|
|
|
|
self.class.type
|
|
|
|
end
|
|
|
|
|
|
|
|
def initialize(work_item)
|
|
|
|
@work_item = work_item
|
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :work_item
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|