Class: Pingdom::TMSSummary

Inherits:
Base
  • Object
show all
Defined in:
lib/pingdom/tms_summary.rb,
lib/pingdom/tms_summary/outage.rb,
lib/pingdom/tms_summary/average.rb,
lib/pingdom/tms_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?, #respond_to_missing?

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, recipe) ⇒ Object



22
23
24
# File 'lib/pingdom/tms_summary.rb', line 22

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

Instance Method Details

#fromObject



26
27
28
# File 'lib/pingdom/tms_summary.rb', line 26

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

#toObject



30
31
32
# File 'lib/pingdom/tms_summary.rb', line 30

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