Class: PuppetX::Sensu::ArrayOfHashesProperty
- Inherits:
-
Puppet::Property
- Object
- Puppet::Property
- PuppetX::Sensu::ArrayOfHashesProperty
- Defined in:
- lib/puppet_x/sensu/array_of_hashes_property.rb
Instance Method Summary collapse
- #change_to_s(currentvalue, newvalue) ⇒ Object
- #is_to_s(currentvalue) ⇒ Object (also: #should_to_s)
Instance Method Details
#change_to_s(currentvalue, newvalue) ⇒ Object
4 5 6 7 8 |
# File 'lib/puppet_x/sensu/array_of_hashes_property.rb', line 4 def change_to_s(currentvalue, newvalue) currentvalue = currentvalue.to_s if currentvalue != :absent newvalue = newvalue.to_s super(currentvalue, newvalue) end |
#is_to_s(currentvalue) ⇒ Object Also known as: should_to_s
10 11 12 |
# File 'lib/puppet_x/sensu/array_of_hashes_property.rb', line 10 def is_to_s(currentvalue) currentvalue.to_s end |