Class: ZohoSign::CurrentUser::GetService
- Inherits:
-
BaseService
- Object
- BaseService
- ZohoSign::CurrentUser::GetService
- Defined in:
- lib/zoho_sign/current_user/get_service.rb
Instance Method Summary collapse
-
#call ⇒ Object
Get the current user.
-
#initialize ⇒ GetService
constructor
A new instance of GetService.
Constructor Details
#initialize ⇒ GetService
8 |
# File 'lib/zoho_sign/current_user/get_service.rb', line 8 def initialize; end |
Instance Method Details
#call ⇒ Object
Get the current user.
Examples
service = ZohoSign::CurrentUser::GetService.call
service.success? # => true
service.errors # => #<ActiveModel::Errors []>
service.response # => #<Faraday::Response ...>
service.response.status # => 200
service.response.body # => {}
service.facade # => #<ZohoSign::CurrentUser::Facade ...>
service.facade.zsoid
service.zsoid
GET /api/v1/currentuser
28 29 30 |
# File 'lib/zoho_sign/current_user/get_service.rb', line 28 def call connection.get('currentuser') end |