Top Level Namespace

Defined Under Namespace

Modules: OSCRuby Classes: String

Instance Method Summary collapse

Instance Method Details

#arrf(**args) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/osc_ruby.rb', line 16

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

#dti(date) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/osc_ruby.rb', line 8

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