Sha256: f14cdbc907024c4f0c86829a59eabe464af01d0a08883f6cc7fdd9af8107bc24

Contents?: true

Size: 222 Bytes

Versions: 8

Compression:

Stored size: 222 Bytes

Contents

class YouTrack::Client::Projects < YouTrack::Client::Collection
  model YouTrack::Client::Project

  def all
    load(service.get_projects.body)
  end

  def get(identity)
    find { |p| p.identity == identity }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
you_track-0.4.8 lib/you_track/client/models/projects.rb
you_track-0.4.7 lib/you_track/client/models/projects.rb
you_track-0.4.6 lib/you_track/client/models/projects.rb
you_track-0.4.5 lib/you_track/client/models/projects.rb
you_track-0.4.4 lib/you_track/client/models/projects.rb
you_track-0.4.2 lib/you_track/client/models/projects.rb
you_track-0.4.1 lib/you_track/client/models/projects.rb
you_track-0.4.0 lib/you_track/client/models/projects.rb