Module: ElasticWeb::Client::Accounts
- Includes:
- Cron
- Included in:
- ElasticWeb::Client
- Defined in:
- lib/elasticweb/client/accounts.rb,
lib/elasticweb/client/accounts/cron.rb
Defined Under Namespace
Modules: Cron
Instance Method Summary collapse
- #accounts ⇒ Object
- #create_account(options) ⇒ Object
- #delete_account(id) ⇒ Object
- #update_account(id, options) ⇒ Object
Methods included from Cron
Instance Method Details
#accounts ⇒ Object
8 9 10 |
# File 'lib/elasticweb/client/accounts.rb', line 8 def accounts get('/account/list') end |
#create_account(options) ⇒ Object
12 13 14 |
# File 'lib/elasticweb/client/accounts.rb', line 12 def create_account() post('/account/entry', ) end |
#delete_account(id) ⇒ Object
20 21 22 |
# File 'lib/elasticweb/client/accounts.rb', line 20 def delete_account(id) delete("/account/entry/#{id}") end |
#update_account(id, options) ⇒ Object
16 17 18 |
# File 'lib/elasticweb/client/accounts.rb', line 16 def update_account(id, ) patch("/account/entry/#{id}", ) end |