Class: Dirigible::Feed
- Inherits:
-
Object
- Object
- Dirigible::Feed
- Defined in:
- lib/dirigible/feed.rb
Overview
Note:
The Feed API still uses the version 1 Push API. In the future it will be upgraded to use the V3 push API.
Class Method Summary collapse
-
.create(params) ⇒ Object
Creates a new feed.
-
.delete(id) ⇒ Object
Removes a feed from the monitoring service, and stops new pushes from being sent.
-
.get(id) ⇒ Object
Returns information about that particular feed.
-
.update(id, params) ⇒ Object
Updates a feed with a new template.
Class Method Details
.create(params) ⇒ Object
Creates a new feed.
19 20 21 |
# File 'lib/dirigible/feed.rb', line 19 def self.create(params) Dirigible.post('/feeds', params) end |
.delete(id) ⇒ Object
Removes a feed from the monitoring service, and stops new pushes from being sent.
58 59 60 |
# File 'lib/dirigible/feed.rb', line 58 def self.delete(id) Dirigible.delete("/feeds/#{id}") end |
.get(id) ⇒ Object
Returns information about that particular feed.
29 30 31 |
# File 'lib/dirigible/feed.rb', line 29 def self.get(id) Dirigible.get("/feeds/#{id}") end |
.update(id, params) ⇒ Object
Updates a feed with a new template
47 48 49 |
# File 'lib/dirigible/feed.rb', line 47 def self.update(id, params) Dirigible.put("/feeds/#{id}", params) end |