Sha256: 65367477f51b39a3b5d88fe3d4d569cafbfda3ee05cae599b69175e4fcb97440

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require 'webmachine/resource'

module Rakuna
  module Resource
    # Action Resources perform tasks.
    class Action < Webmachine::Resource
      def allowed_methods
        %w(POST)
      end

      def process_post
        input
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rakuna-0.7.5 lib/rakuna/resource/action.rb
rakuna-0.7.4 lib/rakuna/resource/action.rb
rakuna-0.7.3 lib/rakuna/resource/action.rb
rakuna-0.7.2 lib/rakuna/resource/action.rb