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.
2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 |
# File 'lib/models/porcelain.rb', line 2918 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.
2908 2909 2910 |
# File 'lib/models/porcelain.rb', line 2908 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
2910 2911 2912 |
# File 'lib/models/porcelain.rb', line 2910 def name @name end |
#server_url ⇒ Object
Returns the value of attribute server_url.
2912 2913 2914 |
# File 'lib/models/porcelain.rb', line 2912 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2914 2915 2916 |
# File 'lib/models/porcelain.rb', line 2914 def @tags end |
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
2916 2917 2918 |
# File 'lib/models/porcelain.rb', line 2916 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2932 2933 2934 2935 2936 2937 2938 |
# File 'lib/models/porcelain.rb', line 2932 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 |