Class: Fakturoid::Client::User
- Inherits:
-
Api
- Object
- Api
- Fakturoid::Client::User
show all
- Defined in:
- lib/fakturoid/client/user.rb
Class Method Summary
collapse
Methods inherited from Api
config, configure
#permit_params, #validate_numerical_id, #validate_search_query
#delete_request, #get_request, #patch_request, #post_request
Class Method Details
.all ⇒ Object
13
14
15
|
# File 'lib/fakturoid/client/user.rb', line 13
def self.all
get_request('users.json')
end
|
.current ⇒ Object
4
5
6
|
# File 'lib/fakturoid/client/user.rb', line 4
def self.current
get_request('user.json', url: Fakturoid::Api.config.endpoint_without_account)
end
|
.find(id) ⇒ Object
8
9
10
11
|
# File 'lib/fakturoid/client/user.rb', line 8
def self.find(id)
validate_numerical_id(id)
get_request("users/#{id}.json")
end
|