Class: UserQ::Internal

Inherits:
Object
  • Object
show all
Defined in:
lib/userq.rb

Overview

Useful internal tools we use to make it beautiful.

Class Method Summary collapse

Class Method Details

.current_timeObject

Time all comes from here. Beautiful to update.



192
193
194
# File 'lib/userq.rb', line 192

def self.current_time # Time all comes from here. Beautiful to update.
  Time.now
end

.generate_codeObject



196
197
198
# File 'lib/userq.rb', line 196

def self.generate_code
  rand(36**24).to_s(36)
end

.symbolize(array) ⇒ Object



186
187
188
189
190
# File 'lib/userq.rb', line 186

def self.symbolize array
  result = {}
  array.each { |key, value| result[key.to_sym] = value }
  result
end