Class: BrickFTP::RESTfulAPI::CountUsers
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::CountUsers
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/count_users.rb
Overview
Count users
Instance Method Summary collapse
-
#call ⇒ Integer
Returns a count of the number of users for the current site.
Methods included from Command
Instance Method Details
#call ⇒ Integer
Returns a count of the number of users for the current site.
16 17 18 19 |
# File 'lib/brick_ftp/restful_api/count_users.rb', line 16 def call res = client.get('/api/rest/v1/users.json?action=count') res['data']['count'] end |