Sha256: ef47acaa1423282ca99cc8ea2bd88f897f629f6c69e606c3ede200fedaccab66
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 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 # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
you_track-0.2.2 | lib/you_track/client/get_issues.rb |
you_track-0.2.1 | lib/you_track/client/get_issues.rb |
you_track-0.2.0 | lib/you_track/client/get_issues.rb |