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.
412 413 414 415 416 |
# File 'lib/cachet.rb', line 412 def create() request method: :post, url: @base_url + 'subscribers', payload: end |
#delete(options) ⇒ Object
Delete a Subscriber.
424 425 426 427 |
# File 'lib/cachet.rb', line 424 def delete() request method: :delete, url: @base_url + 'subscribers/' + ['id'].to_s end |
#list ⇒ Object
List all Subscribers.
400 401 402 403 |
# File 'lib/cachet.rb', line 400 def list request method: :get, url: @base_url + 'subscribers' end |