Sha256: a9c2fc3a20ced42c07d2cb342a2b44863ac628a9594e87d85968bfe6ae7aca1e

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

require 'webmachine/resource'

module Rakuna
  module Resource
    # Collection Resources contain multiple resources, and can be added to.
    class Collection < Webmachine::Resource
      def allowed_methods
        %w(HEAD GET POST)
      end

      def post_is_create?
        true
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rakuna-0.7.5 lib/rakuna/resource/collection.rb
rakuna-0.7.4 lib/rakuna/resource/collection.rb
rakuna-0.7.3 lib/rakuna/resource/collection.rb
rakuna-0.7.2 lib/rakuna/resource/collection.rb
rakuna-0.7.1 lib/rakuna/resource/collection.rb
rakuna-0.7.0 lib/rakuna/resource/collection.rb
rakuna-0.6.0 lib/rakuna/resource/collection.rb