class Uptime::Checks
Public Class Methods
all(filter={})
click to toggle source
attr_accessor :username, :password
# File lib/uptime/checks.rb, line 8 def self.all(filter={}) response = Uptime::Call.execute(self.resource, :get) end
create(options={})
click to toggle source
# File lib/uptime/checks.rb, line 12 def self.create(options={}) Uptime::Call.execute(self.resource, :put, options) end
delete(check_id)
click to toggle source
# File lib/uptime/checks.rb, line 17 def self.delete(check_id) Uptime::Call.execute("#{self.resource}/#{check_id}", :delete) end
update(check_id, options={})
click to toggle source
# File lib/uptime/checks.rb, line 21 def self.update(check_id, options={}) Uptime::Call.execute("#{self.resource}/#{check_id}", :post, options) end