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.
15225 15226 15227 15228 15229 |
# File 'lib/models/porcelain.rb', line 15225 def initialize( password_policy: nil ) @password_policy = password_policy == nil ? nil : password_policy end |
Instance Attribute Details
#password_policy ⇒ Object
Policy for password
15223 15224 15225 |
# File 'lib/models/porcelain.rb', line 15223 def password_policy @password_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
15231 15232 15233 15234 15235 15236 15237 |
# File 'lib/models/porcelain.rb', line 15231 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 |