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
Returns a new instance of SecretEnginePolicy.
13609 13610 13611 13612 13613 |
# File 'lib/models/porcelain.rb', line 13609 def initialize( password_policy: nil ) @password_policy = password_policy == nil ? nil : password_policy end |
Instance Attribute Details
#password_policy ⇒ Object
Policy for password
13607 13608 13609 |
# File 'lib/models/porcelain.rb', line 13607 def password_policy @password_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
13615 13616 13617 13618 13619 13620 13621 |
# File 'lib/models/porcelain.rb', line 13615 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 |