Class: Rakuna::Resource::Action

Inherits:
Basic
  • Object
show all
Includes:
Contracts
Defined in:
lib/rakuna/resource/action.rb

Overview

Action Resources perform tasks. They return no content, and only respond to POST.

Instance Method Summary collapse

Methods included from Provides::Output

#content_types_provided, #output, #output_method

Methods included from Accepts::Input

#input

Instance Method Details

#allowed_methodsObject



12
13
14
# File 'lib/rakuna/resource/action.rb', line 12

def allowed_methods
  %w(POST)
end

#process_postObject



17
18
19
# File 'lib/rakuna/resource/action.rb', line 17

def process_post
  execute
end