Class: RubyAem::Resources::ConfigProperty
- Inherits:
-
Object
- Object
- RubyAem::Resources::ConfigProperty
- Defined in:
- lib/ruby_aem/resources/config_property.rb
Overview
ConfigProperty class contains API calls related to managing an AEM config property.
Instance Method Summary collapse
-
#create(run_mode) ⇒ Object
Create a new config property.
-
#initialize(client, name, type, value) ⇒ Object
constructor
Initialise a config property.
Constructor Details
#initialize(client, name, type, value) ⇒ Object
Initialise a config property
29 30 31 32 33 34 35 36 |
# File 'lib/ruby_aem/resources/config_property.rb', line 29 def initialize(client, name, type, value) @client = client @call_params = { name: name, type: type, value: value } end |
Instance Method Details
#create(run_mode) ⇒ Object
Create a new config property.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/ruby_aem/resources/config_property.rb', line 42 def create(run_mode) name = RubyAem::Swagger.property_to_parameter(@call_params[:name]) @call_params[:run_mode] = run_mode @call_params["#{name}".to_sym] = @call_params[:value] @call_params["#{name}_type_hint".to_sym] = @call_params[:type] @client.call(self.class, __callee__.to_s, @call_params) end |