Class: YouTrack::Client::GetCurrentUser
- Inherits:
-
Request
- Object
- Request
- YouTrack::Client::GetCurrentUser
show all
- Defined in:
- lib/you_track/client/requests/get_current_user.rb
Instance Method Summary
collapse
Methods inherited from Request
#find, #ms_time, #require_parameters
Instance Method Details
#mock ⇒ Object
9
10
11
12
13
|
# File 'lib/you_track/client/requests/get_current_user.rb', line 9
def mock
service.response(
:body => service.set_current_user,
)
end
|
#real ⇒ Object
2
3
4
5
6
7
|
# File 'lib/you_track/client/requests/get_current_user.rb', line 2
def real
service.request(
:path => "/user/current",
:parser => YouTrack::Parser::UserParser,
)
end
|