Class: Kentaa::Api::Resources::Actions

Inherits:
List
  • Object
show all
Includes:
Enumerable
Defined in:
lib/kentaa/api/resources/actions.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #options

Instance Method Summary collapse

Methods inherited from List

#all, #current_page, #links, #next, #next_page, #next_page?, #pages, #per_page, #previous, #previous_page, #previous_page?, #total_entries, #total_pages

Methods inherited from Base

#initialize, #load, #loaded?

Constructor Details

This class inherits a constructor from Kentaa::Api::Resources::Base

Instance Method Details

#create(attributes = {}) ⇒ Object



13
14
15
16
# File 'lib/kentaa/api/resources/actions.rb', line 13

def create(attributes = {})
  action = Kentaa::Api::Resources::Action.new(config, options)
  action.save(attributes)
end

#each(&block) ⇒ Object



9
10
11
# File 'lib/kentaa/api/resources/actions.rb', line 9

def each(&block)
  actions.each(&block)
end