Class: Analytics::CycleAnalytics::StageEntity

Inherits:
Grape::Entity
  • Object
show all
Includes:
ActionView::Context, ActionView::Helpers::TagHelper, LabelsHelper
Defined in:
app/serializers/analytics/cycle_analytics/stage_entity.rb

Instance Method Summary collapse

Methods included from LabelsHelper

#create_label_title, #issuable_types, #label_dropdown_data, #label_status_tooltip, #label_subscription_status, #label_subscription_toggle_button_text, #label_tooltip_title, #labels_filter_path, #labels_filter_path_with_defaults, #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_descriptionObject


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

#idObject


38
39
40
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 38

def id
  object.id || object.name
end

Avoid including ActionView::Helpers::UrlHelper


51
52
53
# File 'app/serializers/analytics/cycle_analytics/stage_entity.rb', line 51

def link_to(*args)
  ActionController::Base.helpers.link_to(*args)
end

#start_event_html_descriptionObject


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