Module: LinkedIn::Utils

Defined in:
lib/linkedin/utils.rb

Class Method Summary collapse

Class Method Details

.generate_random_stateObject



3
4
5
6
# File 'lib/linkedin/utils.rb', line 3

def self.generate_random_state
  o = [('a'..'z'),('A'..'Z')].map{|i| i.to_a}.flatten
  (0...50).map{ o[rand(o.length)] }.join
end