15 16 17 18
# File 'lib/puppetdb/query.rb', line 15 def self.maybe_promote(query) return Query.new(query) unless query.class == Query query end