Sha256: ce8eed02d8143ecd48aa574b0e7e65561346e974e2d895aa56b2520aa3d1da09

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 Bytes

Contents

require 'osc_ruby/modules/validations_module'
require 'osc_ruby/modules/normalize_module'
require 'osc_ruby/modules/query_module'
require 'json'

module OSCRuby

	class QueryResults

		include QueryModule
		include ValidationsModule

		def initialize; end

		def query(client,query)

			ValidationsModule::check_client(client)

			ValidationsModule::check_query(query,"query")

			@query = URI.escape("queryResults/?query=#{query}")

	    	response = QueryModule::find(client,@query)

	    	JSON.parse(response) 
 			
		end


	
	end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
osc_ruby-1.4.0 lib/osc_ruby/classes/query_results.rb
osc_ruby-1.3.2 lib/osc_ruby/classes/query_results.rb
osc_ruby-1.3.1 lib/osc_ruby/classes/query_results.rb
osc_ruby-1.2.2 lib/osc_ruby/classes/query_results.rb
osc_ruby-1.2.1 lib/osc_ruby/classes/query_results.rb
osc_ruby-1.2.0 lib/osc_ruby/classes/query_results.rb