Class: Satis::StsWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/satis/action_controller_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (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

#browserObject



11
12
13
# File 'lib/satis/action_controller_helpers.rb', line 11

def browser
  @browser ||= Browser.new(request.user_agent)
end