Module: Feedlr::Gateway::Entries
- Included in:
- Client
- Defined in:
- lib/feedlr/gateway/entries.rb
Overview
Entries API
Instance Method Summary collapse
-
#add_entry(entry) ⇒ String
Create and tag an entry.
-
#user_entries(entries_ids, options = {}) ⇒ Feedlr::Collection
Get the content for a dynamic list of entries.
-
#user_entry(entry_id) ⇒ Feedlr::Base
Get the content of an entry.
Instance Method Details
#add_entry(entry) ⇒ String
Create and tag an entry
35 36 37 |
# File 'lib/feedlr/gateway/entries.rb', line 35 def add_entry(entry) build_object(:post , '/entries' , entry).first end |
#user_entries(entries_ids, options = {}) ⇒ Feedlr::Collection
Get the content for a dynamic list of entries
23 24 25 26 27 28 |
# File 'lib/feedlr/gateway/entries.rb', line 23 def user_entries(entries_ids , = {}) build_object(:post , '/entries/.mget', continuation: [:continuation], ids: entries_ids ) end |
#user_entry(entry_id) ⇒ Feedlr::Base
Get the content of an entry
12 13 14 |
# File 'lib/feedlr/gateway/entries.rb', line 12 def user_entry(entry_id) user_entries([entry_id]).first end |