Class: RubyAem::Resources::Node
- Inherits:
-
Object
- Object
- RubyAem::Resources::Node
- Defined in:
- lib/ruby_aem/resources/node.rb
Overview
Node class contains API calls related to managing an AEM node.
Instance Method Summary collapse
-
#create(type) ⇒ Object
Create a new node.
-
#delete ⇒ Object
Delete the node.
-
#exists ⇒ Object
Check whether the node exists or not.
-
#initialize(client, path, name) ⇒ Object
constructor
Initialise a node.
Constructor Details
Instance Method Details
#create(type) ⇒ Object
Create a new node.
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 |
#delete ⇒ Object
Delete the node.
47 48 49 |
# File 'lib/ruby_aem/resources/node.rb', line 47 def delete @client.call(self.class, __callee__.to_s, @call_params) end |
#exists ⇒ Object
Check whether the node exists or not. If the node exists, this method returns a true result data, false otherwise.
56 57 58 |
# File 'lib/ruby_aem/resources/node.rb', line 56 def exists @client.call(self.class, __callee__.to_s, @call_params) end |