Class: Roqua::CoreApi::Sessions::BasicAuthSession
- Inherits:
-
AuthSession
- Object
- AuthSession
- Roqua::CoreApi::Sessions::BasicAuthSession
- Defined in:
- lib/roqua/core_api/sessions/basic_auth_session.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from AuthSession
Instance Method Summary collapse
-
#initialize(username: ENV.fetch('CORE_BASICAUTH_ID'), password: ENV.fetch('CORE_BASICAUTH_SECRET'), **additional_arguments) ⇒ BasicAuthSession
constructor
A new instance of BasicAuthSession.
Methods inherited from AuthSession
Constructor Details
#initialize(username: ENV.fetch('CORE_BASICAUTH_ID'), password: ENV.fetch('CORE_BASICAUTH_SECRET'), **additional_arguments) ⇒ BasicAuthSession
Returns a new instance of BasicAuthSession.
8 9 10 11 12 13 14 |
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 8 def initialize(username: ENV.fetch('CORE_BASICAUTH_ID'), password: ENV.fetch('CORE_BASICAUTH_SECRET'), **additional_arguments) @username = username @password = password super(**additional_arguments) end |
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 6 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/roqua/core_api/sessions/basic_auth_session.rb', line 5 def username @username end |