Sha256: 2a032cd5b1d6f897eea957b58d0cbd87c9563a9856e5fe679bb7d694a11b4c2b
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 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, error_status: 403, error_message: "You have no rights to read user."), "login", "filterFolder", "lastCreatedProject", "fullName" ) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
you_track-0.4.8 | lib/you_track/client/requests/get_user.rb |