Class: Gitlab::CycleAnalytics::Summary::Deploy

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/cycle_analytics/summary/deploy.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gitlab::CycleAnalytics::Summary::Base

Instance Method Details

#titleObject


7
8
9
# File 'lib/gitlab/cycle_analytics/summary/deploy.rb', line 7

def title
  n_('Deploy', 'Deploys', value.to_i)
end

#valueObject


11
12
13
# File 'lib/gitlab/cycle_analytics/summary/deploy.rb', line 11

def value
  @value ||= Value::PrettyNumeric.new(deployments_count)
end