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