Class: UserAuth::Configuration
- Inherits:
-
Object
- Object
- UserAuth::Configuration
- Defined in:
- lib/user_auth/configuration.rb
Instance Attribute Summary collapse
-
#allow_signups ⇒ Object
Returns the value of attribute allow_signups.
-
#deliver_mail ⇒ Object
Returns the value of attribute deliver_mail.
-
#jwt_exp ⇒ Object
Returns the value of attribute jwt_exp.
-
#require_account_confirmations ⇒ Object
Returns the value of attribute require_account_confirmations.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 |
# File 'lib/user_auth/configuration.rb', line 6 def initialize @deliver_mail = lambda do || $logger.info("TODO: Deliver mail #{.inspect}") end @require_account_confirmations = false @allow_signups = true @jwt_exp = 3600 end |
Instance Attribute Details
#allow_signups ⇒ Object
Returns the value of attribute allow_signups.
3 4 5 |
# File 'lib/user_auth/configuration.rb', line 3 def allow_signups @allow_signups end |
#deliver_mail ⇒ Object
Returns the value of attribute deliver_mail.
3 4 5 |
# File 'lib/user_auth/configuration.rb', line 3 def deliver_mail @deliver_mail end |
#jwt_exp ⇒ Object
Returns the value of attribute jwt_exp.
3 4 5 |
# File 'lib/user_auth/configuration.rb', line 3 def jwt_exp @jwt_exp end |
#require_account_confirmations ⇒ Object
Returns the value of attribute require_account_confirmations.
3 4 5 |
# File 'lib/user_auth/configuration.rb', line 3 def require_account_confirmations @require_account_confirmations end |