Module: Novu::Api::Feeds
- Included in:
- Client
- Defined in:
- lib/novu/api/feeds.rb
Overview
Module Novu::Api::Feeds provides an API for managing feeds in the Novu application.
This module includes methods for creating, retrieving, and deleting feeds.
For more information on the Novu API(api.novu.co/api#/Feeds), see docs.novu.co/api/create-feed/.
Instance Method Summary collapse
-
#create_feed(body) ⇒ Hash, number
Creates a new feed.
-
#delete_feed(feed_id) ⇒ Hash, number
Execute a soft delete of a feed given a certain ID.
-
#feeds ⇒ Hash, number
Returns a list of feeds.
Instance Method Details
#create_feed(body) ⇒ Hash, number
Creates a new feed.
@bodyparams:
18 19 20 |
# File 'lib/novu/api/feeds.rb', line 18 def create_feed(body) post("/feeds", body: body) end |
#delete_feed(feed_id) ⇒ Hash, number
Execute a soft delete of a feed given a certain ID.
@pathparams:
39 40 41 |
# File 'lib/novu/api/feeds.rb', line 39 def delete_feed(feed_id) delete("/feeds/#{feed_id}") end |
#feeds ⇒ Hash, number
Returns a list of feeds
27 28 29 |
# File 'lib/novu/api/feeds.rb', line 27 def feeds get("/feeds") end |