Method: Camper::Client::CommentsAPI#comments
- Defined in:
- lib/camper/api/comments.rb
#comments(resource) ⇒ PaginatedResponse<Resource>
Get a paginated list of active comments for a given resource
17 18 19 20 21 |
# File 'lib/camper/api/comments.rb', line 17 def comments(resource) raise Error::ResourceCannotBeCommented, resource unless resource.can_be_commented? get(resource.comments_url, override_path: true) end |