Sha256: 302c25f3de8fe7bb965152cbe0eb4c50548183cbcea53475a240a1f8a1e6c4fe
Contents?: true
Size: 365 Bytes
Versions: 12
Compression:
Stored size: 365 Bytes
Contents
class YouTrack::Client::GetIssueComments < YouTrack::Client::Request def real(issue_id) service.request( :path => "/issue/#{issue_id}/comment", :parser => YouTrack::Parser::CommentsParser, ) end def mock(issue_id) service.response( :body => service.data[:comments].values.select { |c| c['issueId'] == issue_id } ) end end
Version data entries
12 entries across 12 versions & 1 rubygems