Sha256: 3a01ae7bf50aea4fc9d663a4aa49463f2046a8aec7689df5f749a68087c61768

Contents?: true

Size: 633 Bytes

Versions: 2

Compression:

Stored size: 633 Bytes

Contents

require 'time'

module OSCRuby; end

# Add this in eventually...
$time_zone = ''

def dti(date)
	begin
		Time.parse(date +' '+$time_zone).iso8601
	rescue Exception => e
		e.message
	end
end

def arrf(**args)
	filter_attrs = [:attributes,:dataType,:name,:operator,:prompt,:values]
	filter_hash = {}

	filter_attrs.each do |attr|

		filter_hash[attr] = args[attr] unless args[attr].nil?
	
	end

	filter_hash
end

require 'osc_ruby/client'
require 'osc_ruby/connect'
require 'osc_ruby/classes/query_results'
require 'osc_ruby/classes/query_results_set'
require 'osc_ruby/classes/analytics_report_results'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
osc_ruby-1.2.1 lib/osc_ruby.rb
osc_ruby-1.2.0 lib/osc_ruby.rb