Module: Autospec::GeneralHelperModule
- Defined in:
- lib/autospec/general_helper_module.rb
Instance Method Summary collapse
- #generate_new_email ⇒ Object
-
#generate_unique_id ⇒ Object
Generate a unique id with a random hex string and time stamp string.
Instance Method Details
#generate_new_email ⇒ Object
9 10 11 |
# File 'lib/autospec/general_helper_module.rb', line 9 def generate_new_email [generate_unique_id, '[email protected]'].join('.') end |
#generate_unique_id ⇒ Object
Generate a unique id with a random hex string and time stamp string
5 6 7 |
# File 'lib/autospec/general_helper_module.rb', line 5 def generate_unique_id SecureRandom.hex(3) + Time.now.to_i.to_s end |