Class: YandexTracker::Resources::Comment
- Defined in:
- lib/yandex_tracker/resources/comment.rb
Overview
Resources::Comment
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #create(issue_id, **attributes) ⇒ Object
- #list(issue_id, **params) ⇒ Object
- #update(issue_id, comment_id, **attributes) ⇒ Object
Methods inherited from Base
#delete, #get, #initialize, #patch, #post, #put
Constructor Details
This class inherits a constructor from YandexTracker::Resources::Base
Instance Method Details
#create(issue_id, **attributes) ⇒ Object
9 10 11 |
# File 'lib/yandex_tracker/resources/comment.rb', line 9 def create(issue_id, **attributes) post("issues/#{issue_id}/comments", attributes) end |
#list(issue_id, **params) ⇒ Object
17 18 19 |
# File 'lib/yandex_tracker/resources/comment.rb', line 17 def list(issue_id, **params) get("issues/#{issue_id}/comments", params) end |
#update(issue_id, comment_id, **attributes) ⇒ Object
13 14 15 |
# File 'lib/yandex_tracker/resources/comment.rb', line 13 def update(issue_id, comment_id, **attributes) patch("issues/#{issue_id}/comments/#{comment_id}", attributes) end |