Class: Railswatch::Widgets::PercentileCard

Inherits:
Card
  • Object
show all
Defined in:
lib/railswatch/widgets/percentile_card.rb

Direct Known Subclasses

P50Card, P95Card, P99Card

Instance Attribute Summary

Attributes inherited from Base

#datasource

Instance Method Summary collapse

Methods inherited from Card

#label, #to_partial_path

Methods inherited from Base

#initialize, #to_partial_path

Constructor Details

This class inherits a constructor from Railswatch::Widgets::Base

Instance Method Details

#valueObject



6
7
8
# File 'lib/railswatch/widgets/percentile_card.rb', line 6

def value
  Reports::PercentileReport.new(datasource.db).data[label.to_sym]
end