Module: Mi::Utils
- Defined in:
- lib/mi/utils.rb
Class Method Summary collapse
Class Method Details
.cookie2str(cookies) ⇒ Object
11 12 13 |
# File 'lib/mi/utils.rb', line 11 def self.() .map { |k, v| "#{k}=#{v}" }.join("; ") end |
.get_random(length) ⇒ Object
7 8 9 |
# File 'lib/mi/utils.rb', line 7 def self.get_random(length) SecureRandom.alphanumeric(length) end |