Sha256: e66cd10fb8fb9a68f7f81528dd9688df3b278bacb4b279de7be737029fb1fa86

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

class YouTrack::Client::Users < YouTrack::Client::Collection
  model YouTrack::Client::User

  def current
    service.users.new(service.get_current_user.body)
  end

  def get(username)
    service.users.new(service.get_user(username).body)
  rescue Faraday::ResourceNotFound
    nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
you_track-0.4.7 lib/you_track/client/models/users.rb
you_track-0.4.6 lib/you_track/client/models/users.rb