module VWO::Utils::Function
Public Instance Methods
get_current_unix_timestamp()
click to toggle source
# File lib/vwo/utils/function.rb, line 32 def get_current_unix_timestamp Time.now.to_i end
get_key_value(obj)
click to toggle source
@return[any, any]
# File lib/vwo/utils/function.rb, line 37 def get_key_value(obj) [obj.keys[0], obj.values[0]] end
get_random_number()
click to toggle source
# File lib/vwo/utils/function.rb, line 27 def get_random_number rand end