Method: RubyAem::Resources::Node#create

Defined in:
lib/ruby_aem/resources/node.rb

#create(type) ⇒ Object

Create a new node.

Parameters:

  • the node type, e.g. sling:Folder

Returns:

  • RubyAem::Result



39
40
41
42
# File 'lib/ruby_aem/resources/node.rb', line 39

def create(type)
  @call_params[:type] = type
  @client.call(self.class, __callee__.to_s, @call_params)
end