Module: Heroku::Scalr::Metric
- Defined in:
- lib/heroku/scalr/metric.rb
Defined Under Namespace
Class Method Summary collapse
-
.new(type, app) ⇒ Heroku::Scalr::Metric::Abstract
A metric instance.
Class Method Details
.new(type, app) ⇒ Heroku::Scalr::Metric::Abstract
Returns a metric instance.
6 7 8 9 10 11 12 13 |
# File 'lib/heroku/scalr/metric.rb', line 6 def self.new(type, app) case type when :wait, "wait" Wait.new(app) else Ping.new(app) end end |