Class: Types::Analytics::CycleAnalytics::ValueStreams::StageType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes – # Already authorized in parent value stream type.

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#end_event_html_descriptionObject



69
70
71
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 69

def end_event_html_description
  stage_entity.end_event_html_description
end

#end_event_identifierObject



61
62
63
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 61

def end_event_identifier
  events_enum[object.end_event_identifier]
end

#events_enumObject



73
74
75
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 73

def events_enum
  Gitlab::Analytics::CycleAnalytics::StageEvents.to_enum.with_indifferent_access
end

#stage_entityObject



77
78
79
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 77

def stage_entity
  @stage_entity ||= ::Analytics::CycleAnalytics::StageEntity.new(object)
end

#start_event_html_descriptionObject



65
66
67
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 65

def start_event_html_description
  stage_entity.start_event_html_description
end

#start_event_identifierObject



57
58
59
# File 'app/graphql/types/analytics/cycle_analytics/value_streams/stage_type.rb', line 57

def start_event_identifier
  events_enum[object.start_event_identifier]
end