Class: GoodGuide::Gibbon::StaticClient
- Inherits:
-
AbstractClient
- Object
- AbstractClient
- GoodGuide::Gibbon::StaticClient
- Defined in:
- lib/goodguide/gibbon.rb
Instance Method Summary collapse
Methods inherited from AbstractClient
Instance Method Details
#analyze_query(input_id, query, t) ⇒ Object
147 148 149 150 151 152 |
# File 'lib/goodguide/gibbon.rb', line 147 def analyze_query(input_id, query, t) query_impl = get_query(query.type) analysis = instance_exec(input_id, query.name, t, &query_impl) analysis[:annotations][:_query_type] = query.type analysis end |
#query_error!(*a) ⇒ Object
143 144 145 |
# File 'lib/goodguide/gibbon.rb', line 143 def query_error!(*a) raise QueryError.new(*a) end |
#to_js ⇒ Object
154 155 156 |
# File 'lib/goodguide/gibbon.rb', line 154 def to_js { :analyzeQuery => proc_for(:analyze_query) } end |