Class: SDM::AWSStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, region: nil, tags: nil) ⇒ AWSStore

Returns a new instance of AWSStore.



6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
# File 'lib/models/porcelain.rb', line 6749

def initialize(
  id: nil,
  name: nil,
  region: nil,
  tags: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if region != nil
    @region = region
  end
  if tags != nil
    @tags = tags
  end
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



6741
6742
6743
# File 'lib/models/porcelain.rb', line 6741

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6743
6744
6745
# File 'lib/models/porcelain.rb', line 6743

def name
  @name
end

#regionObject

Returns the value of attribute region.



6745
6746
6747
# File 'lib/models/porcelain.rb', line 6745

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



6747
6748
6749
# File 'lib/models/porcelain.rb', line 6747

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6769
6770
6771
6772
6773
6774
6775
# File 'lib/models/porcelain.rb', line 6769

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end