Sha256: 97633cfddea928a1007138b900d807665d29d9ab97ec749c143503cc0caa5483

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

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

  def all
    service.projects.load(service.get_projects.body)
  end

  def get(identity)
    all.detect { |p| p.id == identity }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
you_track-0.3.0 lib/you_track/client/models/projects.rb