Class: PuppetX::Sensu::ArrayOfHashesProperty

Inherits:
Puppet::Property
  • Object
show all
Defined in:
lib/puppet_x/sensu/array_of_hashes_property.rb

Instance Method Summary collapse

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