Class: YouTrack::Client::Projects

Inherits:
Collection
  • Object
show all
Defined in:
lib/you_track/client/models/projects.rb

Instance Method Summary collapse

Instance Method Details

#allObject



4
5
6
# File 'lib/you_track/client/models/projects.rb', line 4

def all
  load(service.get_projects.body)
end

#get(identity) ⇒ Object



8
9
10
# File 'lib/you_track/client/models/projects.rb', line 8

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