Class: PuppetX::Sensu::HashProperty

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

Instance Method Summary collapse

Instance Method Details

#change_to_s(currentvalue, newvalue) ⇒ Object



8
9
10
11
12
# File 'lib/puppet_x/sensu/hash_property.rb', line 8

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



14
15
16
# File 'lib/puppet_x/sensu/hash_property.rb', line 14

def is_to_s(currentvalue)
  currentvalue.to_s
end