# File lib/ambition/lib/ambition/query.rb, line 34
    def to_hash
      keyed = keyed_clauses
      hash  = {}

      unless (where = keyed[:conditions]).blank?
        hash[:conditions] = Array(where)
        hash[:conditions] *= ' AND '
      end

      unless (includes = keyed[:includes]).blank?
        hash[:includes] = includes.flatten
      end

      if order = keyed[:order]
        hash[:order] = order.join(', ')
      end

      if limit = keyed[:limit]
        hash[:limit] = limit.join(', ')
      end

      hash
    end