Class: Gitlab::Metrics::Dashboard::Stages::BaseStage

Inherits:
Object
  • Object
show all
Includes:
Defaults
Defined in:
lib/gitlab/metrics/dashboard/stages/base_stage.rb

Constant Summary

Constants included from Defaults

Defaults::DEFAULT_PANEL_TYPE

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, dashboard, params) ⇒ BaseStage

Returns a new instance of BaseStage.


12
13
14
15
16
# File 'lib/gitlab/metrics/dashboard/stages/base_stage.rb', line 12

def initialize(project, dashboard, params)
  @project = project
  @dashboard = dashboard
  @params = params
end

Instance Attribute Details

#dashboardObject (readonly)

Returns the value of attribute dashboard


10
11
12
# File 'lib/gitlab/metrics/dashboard/stages/base_stage.rb', line 10

def dashboard
  @dashboard
end

#paramsObject (readonly)

Returns the value of attribute params


10
11
12
# File 'lib/gitlab/metrics/dashboard/stages/base_stage.rb', line 10

def params
  @params
end

#projectObject (readonly)

Returns the value of attribute project


10
11
12
# File 'lib/gitlab/metrics/dashboard/stages/base_stage.rb', line 10

def project
  @project
end

Instance Method Details

#transform!Object

Entry-point to the stage

Raises:

  • (NotImplementedError)

19
20
21
# File 'lib/gitlab/metrics/dashboard/stages/base_stage.rb', line 19

def transform!
  raise NotImplementedError
end