Module: VWO::Common::FunctionUtils

Includes:
CONSTANTS, Enums
Included in:
ImpressionUtils
Defined in:
lib/vwo/common/function_utils.rb

Constant Summary

Constants included from CONSTANTS

CONSTANTS::API_VERSION, CONSTANTS::HTTPS_PROTOCOL, CONSTANTS::HTTP_PROTOCOL, CONSTANTS::LIBRARY_PATH, CONSTANTS::MAX_TRAFFIC_PERCENT, CONSTANTS::MAX_TRAFFIC_VALUE, CONSTANTS::PLATFORM, CONSTANTS::SDK_VERSION, CONSTANTS::SEED_VALUE, CONSTANTS::STATUS_RUNNING, CONSTANTS::URL_NAMESPACE

Instance Method Summary collapse

Instance Method Details

#get_current_unix_timestampObject



20
21
22
# File 'lib/vwo/common/function_utils.rb', line 20

def get_current_unix_timestamp
  Time.now.to_i
end

#get_random_numberObject



15
16
17
# File 'lib/vwo/common/function_utils.rb', line 15

def get_random_number
  rand
end