Class: Rakuna::Resource::Collection

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

Overview

Collection Resources contain multiple resources, and can be added to.

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



11
12
13
# File 'lib/rakuna/resource/collection.rb', line 11

def allowed_methods
  %w(HEAD GET POST)
end

#post_is_create?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rakuna/resource/collection.rb', line 16

def post_is_create?
  true
end