Class: Capsium::Package::BasicAuthConfig
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Capsium::Package::BasicAuthConfig
- Defined in:
- lib/capsium/package/authentication_config.rb,
sig/capsium/package/authentication_config.rbs
Overview
The "basicAuth" object of authentication.json (ARCHITECTURE.md section 4b): Apache-style Basic authentication verified against an htpasswd file.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
Returns the value of attribute enabled.
-
#passwd_file ⇒ String?
Returns the value of attribute passwd_file.
-
#realm ⇒ String
Returns the value of attribute realm.
Instance Method Summary collapse
- #enabled? ⇒ Boolean
- #initialize ⇒ Object constructor
- #to_hash ⇒ Hash[String, untyped]
- #to_json ⇒ String
Constructor Details
#initialize ⇒ Object
11 |
# File 'sig/capsium/package/authentication_config.rbs', line 11
def initialize: (?enabled: bool enabled, ?passwd_file: String? passwd_file,
|
Instance Attribute Details
#enabled ⇒ Boolean
Returns the value of attribute enabled.
7 8 9 |
# File 'sig/capsium/package/authentication_config.rbs', line 7 def enabled @enabled end |
#passwd_file ⇒ String?
Returns the value of attribute passwd_file.
8 9 10 |
# File 'sig/capsium/package/authentication_config.rbs', line 8 def passwd_file @passwd_file end |
#realm ⇒ String
Returns the value of attribute realm.
9 10 11 |
# File 'sig/capsium/package/authentication_config.rbs', line 9 def realm @realm end |
Instance Method Details
#enabled? ⇒ Boolean
24 25 26 |
# File 'lib/capsium/package/authentication_config.rb', line 24 def enabled? !!enabled end |
#to_hash ⇒ Hash[String, untyped]
17 |
# File 'sig/capsium/package/authentication_config.rbs', line 17
def to_hash: () -> Hash[String, untyped]
|
#to_json ⇒ String
16 |
# File 'sig/capsium/package/authentication_config.rbs', line 16
def to_json: (*untyped args) -> String
|