Class: RailsOtp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_otp/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_timeObject

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

#sidObject

Returns the value of attribute sid.



3
4
5
# File 'lib/rails_otp/configuration.rb', line 3

def sid
  @sid
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'lib/rails_otp/configuration.rb', line 3

def token
  @token
end