Class: MisarBlog::CommentsResource
- Defined in:
- lib/misarblog/client.rb
Overview
GET /comments — an article's comment thread.
Instance Method Summary collapse
-
#list(article_id:, limit: nil, offset: nil) ⇒ Object
List an article's comments, newest first, replies nested one level deep.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from MisarBlog::Resource
Instance Method Details
#list(article_id:, limit: nil, offset: nil) ⇒ Object
List an article's comments, newest first, replies nested one level deep.
223 224 225 226 227 |
# File 'lib/misarblog/client.rb', line 223 def list(article_id:, limit: nil, offset: nil) @client.request(:get, "/comments#{query(compact( article_id: article_id, limit: limit, offset: offset ))}") end |