Module: Heroku::Scalr::Metric

Defined in:
lib/heroku/scalr/metric.rb

Defined Under Namespace

Classes: Abstract, Ping, Wait

Class Method Summary collapse

Class Method Details

.new(type, app) ⇒ Heroku::Scalr::Metric::Abstract

Returns a metric instance.

Parameters:

Returns:



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