module Kameleoon::Utils

Constants

ALPHA_NUMERIC_CHARS

Public Class Methods

generate_random_string(length) click to toggle source
# File lib/kameleoon/utils.rb, line 9
def self.generate_random_string(length)
  (1..length).map { ALPHA_NUMERIC_CHARS[rand(ALPHA_NUMERIC_CHARS.length)] }.join
end
in_seconds(days) click to toggle source
# File lib/kameleoon/utils.rb, line 5
def self.in_seconds(days)
  days * 60 * 60 * 24
end