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.



6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
# File 'lib/models/porcelain.rb', line 6674

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.



6666
6667
6668
# File 'lib/models/porcelain.rb', line 6666

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6668
6669
6670
# File 'lib/models/porcelain.rb', line 6668

def name
  @name
end

#regionObject

Returns the value of attribute region.



6670
6671
6672
# File 'lib/models/porcelain.rb', line 6670

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



6672
6673
6674
# File 'lib/models/porcelain.rb', line 6672

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6694
6695
6696
6697
6698
6699
6700
# File 'lib/models/porcelain.rb', line 6694

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