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.



6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
# File 'lib/models/porcelain.rb', line 6413

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.



6405
6406
6407
# File 'lib/models/porcelain.rb', line 6405

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6407
6408
6409
# File 'lib/models/porcelain.rb', line 6407

def name
  @name
end

#regionObject

Returns the value of attribute region.



6409
6410
6411
# File 'lib/models/porcelain.rb', line 6409

def region
  @region
end

#tagsObject

Tags is a map of key, value pairs.



6411
6412
6413
# File 'lib/models/porcelain.rb', line 6411

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6433
6434
6435
6436
6437
6438
6439
# File 'lib/models/porcelain.rb', line 6433

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