class InterMine::PathQuery::QueryLoader

Attributes

model[R]

Public Class Methods

new(model) click to toggle source
   # File lib/intermine/query.rb
49 def initialize(model)
50     @model = model
51 end

Public Instance Methods

get_handler() click to toggle source
   # File lib/intermine/query.rb
53 def get_handler
54     return QueryBuilder.new(@model)
55 end
parse(xml) click to toggle source
   # File lib/intermine/query.rb
57 def parse(xml)
58     xml = StringIO.new(xml.to_s)
59     handler = get_handler
60     REXML::Document.parse_stream(xml, handler)
61     return handler.query
62 end