Top Level Namespace

Defined Under Namespace

Modules: OSCRuby Classes: String

Instance Method Summary collapse

Instance Method Details

#arrf(**args) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/convenience_methods.rb', line 14

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



6
7
8
9
10
11
12
# File 'lib/convenience_methods.rb', line 6

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