Class: Kentaa::Api::Clients::Actions
- Inherits:
-
Base
- Object
- Base
- Kentaa::Api::Clients::Actions
show all
- Defined in:
- lib/kentaa/api/clients/actions.rb
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#all(options = {}) ⇒ Object
7
8
9
10
|
# File 'lib/kentaa/api/clients/actions.rb', line 7
def all(options = {})
actions = Kentaa::Api::Resources::Actions.new(config, options)
actions.all
end
|
#create(attributes = {}, options = {}) ⇒ Object
22
23
24
25
|
# File 'lib/kentaa/api/clients/actions.rb', line 22
def create(attributes = {}, options = {})
action = Kentaa::Api::Resources::Actions.new(config, options)
action.create(attributes)
end
|
#get(id, options = {}) ⇒ Object
17
18
19
20
|
# File 'lib/kentaa/api/clients/actions.rb', line 17
def get(id, options = {})
action = Kentaa::Api::Resources::Action.new(config, options.merge(id: id))
action.load
end
|
#list(options = {}) ⇒ Object
12
13
14
15
|
# File 'lib/kentaa/api/clients/actions.rb', line 12
def list(options = {})
actions = Kentaa::Api::Resources::Actions.new(config, options)
actions.load
end
|
#update(id, attributes = {}, options = {}) ⇒ Object
27
28
29
30
|
# File 'lib/kentaa/api/clients/actions.rb', line 27
def update(id, attributes = {}, options = {})
action = Kentaa::Api::Resources::Action.new(config, options.merge(id: id))
action.save(attributes)
end
|