Class: UserQ::Internal
- Inherits:
-
Object
- Object
- UserQ::Internal
- Defined in:
- lib/userq.rb
Overview
Useful internal tools we use to make it beautiful.
Class Method Summary collapse
-
.current_time ⇒ Object
Time all comes from here.
- .generate_code ⇒ Object
- .symbolize(array) ⇒ Object
Class Method Details
.current_time ⇒ Object
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_code ⇒ Object
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 |