Class: Puppet::ResourceApi::ReadOnlyParameter
- Defined in:
- lib/puppet/resource_api/read_only_parameter.rb
Overview
Class containing read only parameter functionality for ResourceApi.
Instance Attribute Summary
Attributes inherited from Parameter
Instance Method Summary collapse
-
#rs_value ⇒ Object
used internally.
-
#value=(value) ⇒ Puppet::ResourceError
This method raises error if the there is attempt to set value in parameter.
Methods inherited from Parameter
Constructor Details
This class inherits a constructor from Puppet::ResourceApi::Parameter
Instance Method Details
#rs_value ⇒ Object
used internally
18 19 20 |
# File 'lib/puppet/resource_api/read_only_parameter.rb', line 18 def rs_value @value end |
#value=(value) ⇒ Puppet::ResourceError
This method raises error if the there is attempt to set value in parameter.
10 11 12 13 14 |
# File 'lib/puppet/resource_api/read_only_parameter.rb', line 10 def value=(value) raise Puppet::ResourceError, "Attempting to set `#{@attribute_name}` read_only attribute value " \ "to `#{value}`" end |