Class: Pingdom::Summary

Inherits:
Base
  • Object
show all
Defined in:
lib/pingdom/summary.rb,
lib/pingdom/summary/outage.rb,
lib/pingdom/summary/average.rb,
lib/pingdom/summary/performance.rb

Defined Under Namespace

Classes: Average, Outage, Performance, Proxy, Status

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

attributes, check_error!, #id, #initialize, #inspect, #method_missing, parse, #respond_to?

Constructor Details

This class inherits a constructor from Pingdom::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pingdom::Base

Class Method Details

.proxy(client, check) ⇒ Object



24
25
26
# File 'lib/pingdom/summary.rb', line 24

def self.proxy(client, check)
  Proxy.new(client, check)
end

Instance Method Details

#fromObject



28
29
30
# File 'lib/pingdom/summary.rb', line 28

def from
  Time.at(@attributes[:from])
end

#toObject



32
33
34
# File 'lib/pingdom/summary.rb', line 32

def to
  Time.at(@attributes[:to])
end