Class: Actions
- Inherits:
-
Base
- Object
- Base
- Actions
- Defined in:
- lib/zapix/proxies/actions.rb
Instance Method Summary collapse
- #create(options) ⇒ Object
- #delete(*action_ids) ⇒ Object
- #exists?(options) ⇒ Boolean
- #get_id(options) ⇒ Object
Instance Method Details
#create(options) ⇒ Object
8 9 10 |
# File 'lib/zapix/proxies/actions.rb', line 8 def create() client.action_create() unless exists?() end |
#delete(*action_ids) ⇒ Object
18 19 20 |
# File 'lib/zapix/proxies/actions.rb', line 18 def delete(*action_ids) client.action_delete(action_ids) end |
#exists?(options) ⇒ Boolean
4 5 6 |
# File 'lib/zapix/proxies/actions.rb', line 4 def exists?() client.action_exists() end |
#get_id(options) ⇒ Object
12 13 14 15 16 |
# File 'lib/zapix/proxies/actions.rb', line 12 def get_id() result = client.action_get({ 'filter' => {'name' => ['name']}}) result.first['actionid'] end |