Module: SeeClickFix::Client::Comments
- Included in:
- SeeClickFix::Client
- Defined in:
- lib/seeclickfix/client/comments.rb
Instance Method Summary collapse
-
#create_comment(issue, comment, comment_email, options = {}) ⇒ Array<Hashie::Mash>
Add a comment to an issue.
-
#list_comments(issue, options = {}) ⇒ Array<Hashie::Mash>
Use this query the comments and history of a single issue.
Instance Method Details
#create_comment(issue, comment, comment_email, options = {}) ⇒ Array<Hashie::Mash>
Add a comment to an issue
32 33 34 |
# File 'lib/seeclickfix/client/comments.rb', line 32 def create_comment(issue, comment, comment_email, ={}) post("api/issues/#{issue}/comments.json?comment[comment]=#{comment}&comment[email]=#{comment_email}", ) end |
#list_comments(issue, options = {}) ⇒ Array<Hashie::Mash>
Use this query the comments and history of a single issue.
13 14 15 |
# File 'lib/seeclickfix/client/comments.rb', line 13 def list_comments(issue, ={}) get("api/issues/#{issue}/comments.json", ) end |