Class: SDM::AWSStore
- Inherits:
-
Object
- Object
- SDM::AWSStore
- 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.
-
#region ⇒ Object
Returns the value of attribute region.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore
constructor
A new instance of AWSStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore
Returns a new instance of AWSStore.
406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/models/porcelain.rb', line 406 def initialize( id: nil, name: nil, region: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @region = region == nil ? "" : region @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
398 399 400 |
# File 'lib/models/porcelain.rb', line 398 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
400 401 402 |
# File 'lib/models/porcelain.rb', line 400 def name @name end |
#region ⇒ Object
Returns the value of attribute region.
402 403 404 |
# File 'lib/models/porcelain.rb', line 402 def region @region end |
#tags ⇒ Object
Tags is a map of key, value pairs.
404 405 406 |
# File 'lib/models/porcelain.rb', line 404 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
418 419 420 421 422 423 424 |
# File 'lib/models/porcelain.rb', line 418 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 |