lib/you_track/client/issues.rb in you_track-0.1.0 vs lib/you_track/client/issues.rb in you_track-0.2.0
- old
+ new
@@ -1,10 +1,16 @@
class YouTrack::Client::Issues < YouTrack::Client::Collection
model YouTrack::Client::Issue
+ def all(project, filters={})
+ service.issues.load(service.get_issues(project, filters).body)
+ end
+
def get(identity)
service.issues.new(
service.get_issue(identity).body
)
+ rescue Faraday::ResourceNotFound
+ nil
end
end