lib/kentaa/api/resources/actions.rb in kentaa-api-0.3.2 vs lib/kentaa/api/resources/actions.rb in kentaa-api-0.4.0

- old
+ new

@@ -8,16 +8,19 @@ def each(&block) actions.each(&block) end - protected - - def load_resource(options) - request.get("/actions", options) + def create(attributes = {}) + action = Kentaa::Api::Resources::Action.new(config, options) + action.save(attributes) end private + + def load_resource + request.get("/actions", options) + end def actions @actions ||= begin actions = []