lib/arcade/database.rb
def query  query_object
      response= Api.query(database, query_object.to_s)
      block_given? ? yield(response) : response
   #   if response.is_a?(Hash)
   #     response.map do |r|
   #       if r.key? :"@rid"
   #         allocate_model r
   #       else
   #         r
   #       end
   #     end
   #   else
   #     response
   #   end
    end
# returns an array of results
#
# detects database-records and  allocates them as model-objects
#
returns an array of results
detects database-records and  allocates them as model-objects
returns an array of results detects database - records and allocates them as model - objects
def query  query_object
      response= Api.query(database, query_object.to_s)
      block_given? ? yield(response) : response
    end
def query query_object response = Api . query ( database , query_object . to_s ) block_given? ? yield ( response ) : response end
returns an array of results
detects database-records and  allocates them as model-objects
returns an array of results detects database - records and allocates them as model - objects
#   if response.is_a?(Hash) #     response.map do |r| #       if r.key? :"@rid" #         allocate_model r #       else #         r #       end #     end #   else #     response #   end
query_object