Module: Karatekit::Client::Posts
- Included in:
- Karatekit::Client
- Defined in:
- lib/karatekit/client/posts.rb
Overview
Methods for the Posts API
Instance Method Summary collapse
-
#post(id, options = {}) ⇒ Sawyer::Resource
Get a single post.
-
#posts(options = {}) ⇒ Array<Sawyer::Resource>
List posts.
Instance Method Details
#post(id, options = {}) ⇒ Sawyer::Resource
Get a single post
22 23 24 |
# File 'lib/karatekit/client/posts.rb', line 22 def post(id, = {}) get "posts/#{id}", end |
#posts(options = {}) ⇒ Array<Sawyer::Resource>
List posts
13 14 15 |
# File 'lib/karatekit/client/posts.rb', line 13 def posts( = {}) paginate "posts", end |