Method: InterMine::PathQuery::QueryBuilder#query
- Defined in:
- lib/intermine/query.rb
#query ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/intermine/query.rb', line 84 def query q = create_query # Add first, in case other bits depend on them @subclass_constraints.each do |sc| q.add_constraint(sc) end @joins.each do |j| q.add_join(*j) end @coded_constraints.each do |con| q.add_constraint(con) end @query_attributes.sort_by {|k, v| k}.reverse.each do |k,v| begin q.send(k + "=", v) rescue end end return q end |