Class: Satis::StsWrapper
- Inherits:
-
Object
- Object
- Satis::StsWrapper
- Defined in:
- lib/satis/action_controller_helpers.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #browser ⇒ Object
-
#initialize(request) ⇒ StsWrapper
constructor
A new instance of StsWrapper.
Constructor Details
#initialize(request) ⇒ StsWrapper
Returns a new instance of StsWrapper.
7 8 9 |
# File 'lib/satis/action_controller_helpers.rb', line 7 def initialize(request) @request = request end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
5 6 7 |
# File 'lib/satis/action_controller_helpers.rb', line 5 def request @request end |
Instance Method Details
#browser ⇒ Object
11 12 13 |
# File 'lib/satis/action_controller_helpers.rb', line 11 def browser @browser ||= Browser.new(request.user_agent) end |