Class: SDM::SecretEnginePolicy
- Inherits:
-
Object
- Object
- SDM::SecretEnginePolicy
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#password_policy ⇒ Object
Policy for password.
Instance Method Summary collapse
-
#initialize(password_policy: nil) ⇒ SecretEnginePolicy
constructor
A new instance of SecretEnginePolicy.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(password_policy: nil) ⇒ SecretEnginePolicy
13834 13835 13836 13837 13838 |
# File 'lib/models/porcelain.rb', line 13834 def initialize( password_policy: nil ) @password_policy = password_policy == nil ? nil : password_policy end |
Instance Attribute Details
#password_policy ⇒ Object
Policy for password
13832 13833 13834 |
# File 'lib/models/porcelain.rb', line 13832 def password_policy @password_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
13840 13841 13842 13843 13844 13845 13846 |
# File 'lib/models/porcelain.rb', line 13840 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 |