Class: YandexTracker::Resources::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/yandex_tracker/resources/comment.rb

Overview

Resources::Comment

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

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