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.
3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 |
# File 'lib/models/porcelain.rb', line 3064 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.
3054 3055 3056 |
# File 'lib/models/porcelain.rb', line 3054 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
3056 3057 3058 |
# File 'lib/models/porcelain.rb', line 3056 def name @name end |
#server_url ⇒ Object
Returns the value of attribute server_url.
3058 3059 3060 |
# File 'lib/models/porcelain.rb', line 3058 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
3060 3061 3062 |
# File 'lib/models/porcelain.rb', line 3060 def @tags end |
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
3062 3063 3064 |
# File 'lib/models/porcelain.rb', line 3062 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
3078 3079 3080 3081 3082 3083 3084 |
# File 'lib/models/porcelain.rb', line 3078 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 |