Class: CachetSubscribers
- Inherits:
-
CachetClient
- Object
- CachetClient
- CachetSubscribers
- Defined in:
- lib/cachet.rb
Overview
Inherits CachetClient and handles all Subscribers API Calls
Constant Summary
Constants inherited from CachetClient
CachetClient::INCIDENT_FIXED, CachetClient::INCIDENT_IDENTIFIED, CachetClient::INCIDENT_INVESTIGATING, CachetClient::INCIDENT_SCHEDULED, CachetClient::INCIDENT_WATCHING, CachetClient::STATUS_MAJOR_OUTAGE, CachetClient::STATUS_OPERATIONAL, CachetClient::STATUS_PARTIAL_OUTAGE, CachetClient::STATUS_PERFORMANCE_ISSUES, CachetClient::VERSION
Instance Method Summary collapse
-
#create(options) ⇒ Object
Create Subscriber.
-
#delete(options) ⇒ Object
Delete a Subscriber.
-
#list ⇒ Object
List all Subscribers.
Methods inherited from CachetClient
Constructor Details
This class inherits a constructor from CachetClient
Instance Method Details
#create(options) ⇒ Object
Create Subscriber.
415 416 417 418 419 |
# File 'lib/cachet.rb', line 415 def create() request method: :post, url: @base_url + 'subscribers', payload: end |
#delete(options) ⇒ Object
Delete a Subscriber.
427 428 429 430 |
# File 'lib/cachet.rb', line 427 def delete() request method: :delete, url: @base_url + 'subscribers/' + ['id'].to_s end |
#list ⇒ Object
List all Subscribers.
403 404 405 406 |
# File 'lib/cachet.rb', line 403 def list request method: :get, url: @base_url + 'subscribers' end |