Class: Syndi::API::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/syndi/api/object.rb

Overview

A superclass for Timers and Events.

Instance Method Summary collapse

Instance Method Details

#get_rand_charString (private)

Get a random character.

Returns:

  • (String)

    A random character.



18
19
20
21
# File 'lib/syndi/api/object.rb', line 18

def get_rand_char
  chrs = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890".split(//)
  chrs[rand(chrs.length)]
end