Class: Mingle4r::API::ExecuteMql
- Inherits:
-
Object
- Object
- Mingle4r::API::ExecuteMql
- Extended by:
- CommonClassMethods
- Defined in:
- lib/mingle4r/api/execute_mql.rb
Instance Attribute Summary
Attributes included from CommonClassMethods
Class Method Summary collapse
Methods included from CommonClassMethods
collection_name, collection_name=, element_name, element_name=, find, new
Class Method Details
.query(query_string) ⇒ Object
6 7 8 9 |
# File 'lib/mingle4r/api/execute_mql.rb', line 6 def self.query(query_string) @resource_class.find(:all, :params => {:mql => query_string}). collect { |res| res.attributes } end |