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.
2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 |
# File 'lib/models/porcelain.rb', line 2830 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.
2820 2821 2822 |
# File 'lib/models/porcelain.rb', line 2820 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
2822 2823 2824 |
# File 'lib/models/porcelain.rb', line 2822 def name @name end |
#server_url ⇒ Object
Returns the value of attribute server_url.
2824 2825 2826 |
# File 'lib/models/porcelain.rb', line 2824 def server_url @server_url end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2826 2827 2828 |
# File 'lib/models/porcelain.rb', line 2826 def @tags end |
#tenant_name ⇒ Object
Returns the value of attribute tenant_name.
2828 2829 2830 |
# File 'lib/models/porcelain.rb', line 2828 def tenant_name @tenant_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2844 2845 2846 2847 2848 2849 2850 |
# File 'lib/models/porcelain.rb', line 2844 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 |