Sha256: eb463a9303b15087764601ae8ea8a511390d05c125f5fa51d133475ade0bcda6

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
you_track-0.3.0 lib/you_track/client/models/issues.rb
you_track-0.2.2 lib/you_track/client/issues.rb
you_track-0.2.1 lib/you_track/client/issues.rb
you_track-0.2.0 lib/you_track/client/issues.rb