Sha256: 5714d22df2d57de6d94de64a28a0d6e5df1d9afa753693752c5117f983db3383
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require_relative 'query_results' require 'osc_ruby/modules/validations_module' module OSCRuby class QueryResultsSet include ValidationsModule def query_set(client,*args) ValidationsModule::check_client(client) query_arr = [] key_map = [] args.each do |qh| key_map.push(qh[:key].to_sym) query_arr.push(qh[:query]) end query_results_set = Struct.new( *key_map ) query_search = OSCRuby::QueryResults.new final_query_arr = query_arr.join('; ') final_results = query_search.query(client,final_query_arr) final_query_results_set = query_results_set.new( *final_results ) final_query_results_set end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
osc_ruby-1.4.2 | lib/osc_ruby/classes/query_results_set.rb |
osc_ruby-1.4.1 | lib/osc_ruby/classes/query_results_set.rb |
osc_ruby-1.4.0 | lib/osc_ruby/classes/query_results_set.rb |