Class: DevOpsReport::Metric

Inherits:
ApplicationRecord show all
Includes:
Presentable
Defined in:
app/models/dev_ops_report/metric.rb

Instance Method Summary collapse

Methods included from Presentable

#present

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#instance_score(feature) ⇒ Object


9
10
11
# File 'app/models/dev_ops_report/metric.rb', line 9

def instance_score(feature)
  self["instance_#{feature}"]
end

#leader_score(feature) ⇒ Object


13
14
15
# File 'app/models/dev_ops_report/metric.rb', line 13

def leader_score(feature)
  self["leader_#{feature}"]
end

#percentage_score(feature) ⇒ Object


17
18
19
# File 'app/models/dev_ops_report/metric.rb', line 17

def percentage_score(feature)
  self["percentage_#{feature}"]
end