Class: Rots::Mocks::ClientApp

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/rots/mocks/client_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ ClientApp

Returns a new instance of ClientApp.



13
14
15
16
17
18
19
# File 'lib/rots/mocks/client_app.rb', line 13

def initialize(**options)
  @options = options.dup

  @options[:identifier] ||= "#{Rots::Mocks::RotsServer::SERVER_URL}/john.doe?openid.success=true"

  @app = Rack::Session::Pool.new(Rack::OpenID.new(rack_app))
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



9
10
11
# File 'lib/rots/mocks/client_app.rb', line 9

def app
  @app
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/rots/mocks/client_app.rb', line 9

def options
  @options
end