Class: SDM::MFAConfig
- Inherits:
-
Object
- Object
- SDM::MFAConfig
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Indicates if MFA is enabled for the organization.
-
#okta ⇒ Object
Okta MFA configuration.
-
#provider ⇒ Object
The MFA provider, one of the MFAProvider constants.
Instance Method Summary collapse
-
#initialize(enabled: nil, okta: nil, provider: nil) ⇒ MFAConfig
constructor
A new instance of MFAConfig.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(enabled: nil, okta: nil, provider: nil) ⇒ MFAConfig
Returns a new instance of MFAConfig.
10899 10900 10901 10902 10903 10904 10905 10906 10907 |
# File 'lib/models/porcelain.rb', line 10899 def initialize( enabled: nil, okta: nil, provider: nil ) @enabled = enabled == nil ? false : enabled @okta = okta == nil ? nil : okta @provider = provider == nil ? "" : provider end |
Instance Attribute Details
#enabled ⇒ Object
Indicates if MFA is enabled for the organization.
10893 10894 10895 |
# File 'lib/models/porcelain.rb', line 10893 def enabled @enabled end |
#okta ⇒ Object
Okta MFA configuration. Future providers will be added to this wrapper.
10895 10896 10897 |
# File 'lib/models/porcelain.rb', line 10895 def okta @okta end |
#provider ⇒ Object
The MFA provider, one of the MFAProvider constants.
10897 10898 10899 |
# File 'lib/models/porcelain.rb', line 10897 def provider @provider end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10909 10910 10911 10912 10913 10914 10915 |
# File 'lib/models/porcelain.rb', line 10909 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |