# File lib/puppet/provider/naginator.rb, line 46
46:     def initialize(resource = nil)
47:         if resource.is_a?(Nagios::Base)
48:             # We don't use a duplicate here, because some providers (ParsedFile, at least)
49:             # use the hash here for later events.
50:             @property_hash = resource
51:         elsif resource
52:             @resource = resource if resource
53:             # LAK 2007-05-09: Keep the model stuff around for backward compatibility
54:             @model = resource
55:             @property_hash = self.class.nagios_type.new
56:         else
57:             @property_hash = self.class.nagios_type.new
58:         end
59:     end