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

Methods included from Cron

#update_cron

Instance Method Details

#accountsObject



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 (options)
  post('/account/entry', options)
end

#delete_account(id) ⇒ Object



20
21
22
# File 'lib/elasticweb/client/accounts.rb', line 20

def (id)
  delete("/account/entry/#{id}")
end

#update_account(id, options) ⇒ Object



16
17
18
# File 'lib/elasticweb/client/accounts.rb', line 16

def (id, options)
  patch("/account/entry/#{id}", options)
end