Class: RailsOtp::Configuration
- Inherits:
-
Object
- Object
- RailsOtp::Configuration
- Defined in:
- lib/rails_otp/configuration.rb
Instance Attribute Summary collapse
-
#otp_expiry_time ⇒ Object
Returns the value of attribute otp_expiry_time.
-
#sid ⇒ Object
Returns the value of attribute sid.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/rails_otp/configuration.rb', line 5 def initialize @sid = 'exotel_sid' @token = 'exotel_token' @otp_expiry_time = Time.now + 5.minutes end |
Instance Attribute Details
#otp_expiry_time ⇒ Object
Returns the value of attribute otp_expiry_time.
3 4 5 |
# File 'lib/rails_otp/configuration.rb', line 3 def otp_expiry_time @otp_expiry_time end |
#sid ⇒ Object
Returns the value of attribute sid.
3 4 5 |
# File 'lib/rails_otp/configuration.rb', line 3 def sid @sid end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/rails_otp/configuration.rb', line 3 def token @token end |