Class: OtpGenerator
- Inherits:
-
Object
- Object
- OtpGenerator
- Defined in:
- lib/otp_generator.rb
Class Method Summary collapse
Class Method Details
.generate_otp(length = 6) ⇒ Object
2 3 4 |
# File 'lib/otp_generator.rb', line 2 def self.generate_otp(length = 6) rand().to_s[2, length] end |