Class: YouTrack::Client::GetIssueComments
- Inherits:
-
Request
- Object
- Request
- YouTrack::Client::GetIssueComments
show all
- Defined in:
- lib/you_track/client/requests/get_issue_comments.rb
Instance Method Summary
collapse
Methods inherited from Request
#find, #ms_time, #require_parameters
Instance Method Details
#mock(issue_id) ⇒ Object
9
10
11
12
13
|
# File 'lib/you_track/client/requests/get_issue_comments.rb', line 9
def mock(issue_id)
service.response(
:body => service.data[:comments].values.select { |c| c['issueId'] == issue_id }
)
end
|
#real(issue_id) ⇒ Object
2
3
4
5
6
7
|
# File 'lib/you_track/client/requests/get_issue_comments.rb', line 2
def real(issue_id)
service.request(
:path => "/issue/#{issue_id}/comment",
:parser => YouTrack::Parser::CommentsParser,
)
end
|