Module: Qyu::Utils
- Defined in:
- lib/qyu/utils.rb
Class Method Summary collapse
- .seconds_after_time(seconds, start_time = Time.now) ⇒ Object
- .stringify_hash_keys(object) ⇒ Object
- .uuid ⇒ Object
Class Method Details
.seconds_after_time(seconds, start_time = Time.now) ⇒ Object
5 6 7 |
# File 'lib/qyu/utils.rb', line 5 def self.seconds_after_time(seconds, start_time = Time.now) start_time + seconds end |
.stringify_hash_keys(object) ⇒ Object
13 14 15 |
# File 'lib/qyu/utils.rb', line 13 def self.stringify_hash_keys(object) object.map { |k, v| [k.to_s, v] }.to_h end |
.uuid ⇒ Object
9 10 11 |
# File 'lib/qyu/utils.rb', line 9 def self.uuid SecureRandom.uuid end |