Sha256: e310ee483823813d34289b74a361f89705d99c195d1360ddac47296223094076

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 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)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
you_track-0.4.5 lib/you_track/client/models/users.rb
you_track-0.4.4 lib/you_track/client/models/users.rb