Class: Rakuna::Resource::Collection

Inherits:
Webmachine::Resource
  • Object
show all
Defined in:
lib/rakuna/resource/collection.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#allowed_methodsObject



7
8
9
# File 'lib/rakuna/resource/collection.rb', line 7

def allowed_methods
  %w(HEAD GET POST)
end

#post_is_create?Boolean

Returns:

  • (Boolean)


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

def post_is_create?
  true
end