Class: SDM::DelineaStore
- Inherits:
-
Object
- Object
- SDM::DelineaStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil) ⇒ DelineaStore
constructor
A new instance of DelineaStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil) ⇒ DelineaStore
Returns a new instance of DelineaStore.
3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 |
# File 'lib/models/porcelain.rb', line 3104 def initialize( id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @server_url = server_url == nil ? "" : server_url @tags = == nil ? SDM::() : @tenant_name = tenant_name == nil ? "" : tenant_name end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
3094 3095 3096 |
# File 'lib/models/porcelain.rb', line 3094 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3096 3097 3098 |
# File 'lib/models/porcelain.rb', line 3096 def name @name end |
#server_url ⇒ Object
Returns the value of attribute server_url.
3098 3099 3100 |
# File 'lib/models/porcelain.rb', line 3098 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3100 3101 3102 |
# File 'lib/models/porcelain.rb', line 3100 def @tags end |
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
3102 3103 3104 |
# File 'lib/models/porcelain.rb', line 3102 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3118 3119 3120 3121 3122 3123 3124 |
# File 'lib/models/porcelain.rb', line 3118 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 |