Class: RubyAem::Resources::Path
- Inherits:
-
Object
- Object
- RubyAem::Resources::Path
- Defined in:
- lib/ruby_aem/resources/path.rb
Overview
Path class contains API calls related to managing an AEM path.
Instance Method Summary collapse
-
#activate(ignore_deactivated, only_modified) ⇒ Object
Activate a path.
-
#delete ⇒ Object
Delete a path.
-
#initialize(client, name) ⇒ Object
constructor
Initialise a path.
Constructor Details
#initialize(client, name) ⇒ Object
Initialise a path.
24 25 26 27 28 29 |
# File 'lib/ruby_aem/resources/path.rb', line 24 def initialize(client, name) @client = client @call_params = { name: name } end |
Instance Method Details
#activate(ignore_deactivated, only_modified) ⇒ Object
Activate a path.
36 37 38 39 40 41 |
# File 'lib/ruby_aem/resources/path.rb', line 36 def activate(ignore_deactivated, only_modified) @call_params[:ignoredeactivated] = ignore_deactivated @call_params[:onlymodified] = only_modified @client.call(self.class, __callee__.to_s, @call_params) end |
#delete ⇒ Object
Delete a path.
46 47 48 49 50 51 52 |
# File 'lib/ruby_aem/resources/path.rb', line 46 def delete # The path parameter will be combined with the name parameter # in order to delete the full path. @call_params[:path] = @call_params[:name] @client.call(self.class, __callee__.to_s, @call_params) end |