class Cortex::ContentItems
Public Instance Methods
delete(id)
click to toggle source
# File lib/cortex/content_items.rb, line 23 def delete(id) client.delete("/content_items/#{id}") end
feed(params = {})
click to toggle source
# File lib/cortex/content_items.rb, line 7 def feed(params = {}) client.get('/content_items/feed', params) end
get(id)
click to toggle source
# File lib/cortex/content_items.rb, line 11 def get(id) client.get("/content_items/#{id}") end
get_published(id)
click to toggle source
# File lib/cortex/content_items.rb, line 15 def get_published(id) client.get("/content_items/feed/#{id}") end
query(params = {})
click to toggle source
# File lib/cortex/content_items.rb, line 3 def query(params = {}) client.get('/content_items', params) end
save(content_item)
click to toggle source
# File lib/cortex/content_items.rb, line 19 def save(content_item) client.save('/content_items', content_item) end