Class: Analytics::CycleAnalytics::StageEntity
- Inherits:
-
Grape::Entity
- Object
- Grape::Entity
- Analytics::CycleAnalytics::StageEntity
show all
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper, LabelsHelper
- Defined in:
- app/serializers/analytics/cycle_analytics/stage_entity.rb
Instance Method Summary
collapse
#create_label_title, #label_dropdown_data, #label_lock_on_merge_help_text, #label_status_tooltip, #label_subscription_status, #label_subscription_toggle_button_text, #label_tooltip_title, #labels_filter_path, #labels_filter_path_with_defaults, #labels_function_introduction, #link_to_label, #manage_labels_title, #presented_labels_sorted_by_title, #render_colored_label, #render_label, #render_suggested_colors, #show_label_issuables_link?, #show_labels_full_path?, #suggested_colors, #text_color_for_bg, #toggle_subscription_label_path, #view_labels_title, #wrap_label_html
Instance Method Details
#end_event_html_description ⇒ Object
46
47
48
|
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 46
def end_event_html_description
html_description(object.end_event)
end
|
#id ⇒ Object
38
39
40
|
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 38
def id
object.id || object.name
end
|
#link_to ⇒ Object
Avoid including ActionView::Helpers::UrlHelper
51
52
53
|
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 51
def link_to(...)
ActionController::Base.helpers.link_to(...)
end
|
#start_event_html_description ⇒ Object
42
43
44
|
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 42
def start_event_html_description
html_description(object.start_event)
end
|