Sha256: 403bf141e45813bc78d1c5cc35ed0b464200279fc745648d5ce7a06cbcf3d8c0
Contents?: true
Size: 640 Bytes
Versions: 10
Compression:
Stored size: 640 Bytes
Contents
require 'rest-client' require_relative './credentials' module DashingContrib module Pingdom class Client # Initialize Pingdom client attr_accessor :credentials def initialize(options) @credentials = ::DashingContrib::Pingdom::Credentials.new(options) end def checks(id) ::DashingContrib::Pingdom::Checks.fetch(credentials, id) end def uptime(id, from_time, to_time) ::DashingContrib::Pingdom::Uptime.calc(credentials, id, from_time, to_time) end def summary() ::DashingContrib::Pingdom::Checks.summary(credentials) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems