Class: UcbRailsSessionTimeout::Config
- Inherits:
-
Object
- Object
- UcbRailsSessionTimeout::Config
- Defined in:
- lib/ucb_rails_session_timeout/config.rb
Instance Attribute Summary collapse
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#timeout_length ⇒ Object
Returns the value of attribute timeout_length.
-
#warning_length ⇒ Object
Returns the value of attribute warning_length.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 |
# File 'lib/ucb_rails_session_timeout/config.rb', line 17 def initialize @timeout_length = 15.minutes @warning_length = 2.minutes @redirect_url = nil end |
Instance Attribute Details
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
15 16 17 |
# File 'lib/ucb_rails_session_timeout/config.rb', line 15 def redirect_url @redirect_url end |
#timeout_length ⇒ Object
Returns the value of attribute timeout_length.
15 16 17 |
# File 'lib/ucb_rails_session_timeout/config.rb', line 15 def timeout_length @timeout_length end |
#warning_length ⇒ Object
Returns the value of attribute warning_length.
15 16 17 |
# File 'lib/ucb_rails_session_timeout/config.rb', line 15 def warning_length @warning_length end |