Sha256: c490e790fb161eda492e4d5db9d1a77601000dabbf746ef77dbe2a176c24b077

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

class YouTrack::Client::GetCurrentUser < YouTrack::Client::Request
  def real
    service.request(
      :path   => "/user/current",
      :parser => YouTrack::Parser::UserParser,
    )
  end

  def mock
    service.response(
      :body => find(:users, service.username)
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
you_track-0.4.0 lib/you_track/client/requests/get_current_user.rb
you_track-0.3.0 lib/you_track/client/requests/get_current_user.rb