Sha256: d3ffe8bcdf399622b6634e454abd36e6984821cf1d55945ec5934515f54819b6

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

class YouTrack::Client::GetUser < YouTrack::Client::Request
  def real(username)
    service.request(
      :path   => "/user/#{username}",
      :parser => YouTrack::Parser::UserParser,
    )
  end

  def mock(username)
    service.response(
      :body => Cistern::Hash.slice(
        find(:users, username),
        "login", "filterFolder", "lastCreatedProject", "fullName"
      )
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
you_track-0.4.7 lib/you_track/client/requests/get_user.rb
you_track-0.4.6 lib/you_track/client/requests/get_user.rb
you_track-0.4.5 lib/you_track/client/requests/get_user.rb
you_track-0.4.4 lib/you_track/client/requests/get_user.rb