Class: Rots::Mocks::ClientApp
- Inherits:
-
Object
- Object
- Rots::Mocks::ClientApp
- Extended by:
- Forwardable
- Defined in:
- lib/rots/mocks/client_app.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(**options) ⇒ ClientApp
constructor
A new instance of ClientApp.
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 = .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
#app ⇒ Object (readonly)
Returns the value of attribute app.
9 10 11 |
# File 'lib/rots/mocks/client_app.rb', line 9 def app @app end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/rots/mocks/client_app.rb', line 9 def @options end |