Sha256: 35a1c9432a081ae3ee10dd583691e752cf9e714c07fce848fbe8f6158ca98ed7
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
class YouTrack::Client::GetIssues < YouTrack::Client::Request def real(project, filters={}) service.request( :path => "/issue/byproject/#{project}", :parser => YouTrack::Parser::IssuesParser, :query => filters, ) end def mock(project, filters={}) issues = service.data[:issues].values.select { |i| i["projectShortName"] == project } # delete first n elements from the array if filters["after"] issues.delete_if.with_index { |x,i| i < (filters["after"].to_i - 1) } end service.response( :body => issues ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
you_track-0.3.0 | lib/you_track/client/requests/get_issues.rb |