Class: Uptime::Checks
- Inherits:
-
Object
- Object
- Uptime::Checks
- Defined in:
- lib/uptime/checks.rb
Class Method Summary collapse
-
.all(filter = {}) ⇒ Object
attr_accessor :username, :password.
- .create(options = {}) ⇒ Object
- .delete(check_id) ⇒ Object
- .update(check_id, options = {}) ⇒ Object
Class Method Details
.all(filter = {}) ⇒ Object
attr_accessor :username, :password
8 9 10 |
# File 'lib/uptime/checks.rb', line 8 def self.all(filter={}) response = Uptime::Call.execute(self.resource, :get) end |
.create(options = {}) ⇒ Object
12 13 14 |
# File 'lib/uptime/checks.rb', line 12 def self.create(={}) Uptime::Call.execute(self.resource, :put, ) end |