# File lib/puppet/resource.rb, line 53
53:   def to_pson_data_hash
54:     data = ([:type, :title, :tags] + ATTRIBUTES).inject({}) do |hash, param|
55:       next hash unless value = self.send(param)
56:       hash[param.to_s] = value
57:       hash
58:     end
59: 
60:     data["exported"] ||= false
61: 
62:     params = self.to_hash.inject({}) do |hash, ary|
63:       param, value = ary
64: 
65:       # Don't duplicate the title as the namevar
66:       next hash if param == namevar and value == title
67: 
68:       hash[param] = Puppet::Resource.value_to_pson_data(value)
69:       hash
70:     end
71: 
72:     data["parameters"] = params unless params.empty?
73: 
74:     data
75:   end