Class: KeeperSecretsManager::Dto::SecretsManagerResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/keeper_secrets_manager/dto.rb

Overview

Response wrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ SecretsManagerResponse

Returns a new instance of SecretsManagerResponse.



515
516
517
518
519
520
521
522
523
# File 'lib/keeper_secrets_manager/dto.rb', line 515

def initialize(attrs = {})
  @records = attrs[:records] || []
  @folders = attrs[:folders] || []
  @app_data = attrs[:app_data] || {}
  @warnings = attrs[:warnings] || []
  @errors = attrs[:errors] || []
  @just_bound = attrs[:just_bound] || false
  @expires_on = attrs[:expires_on]
end

Instance Attribute Details

#app_dataObject

Returns the value of attribute app_data.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def app_data
  @app_data
end

#errorsObject

Returns the value of attribute errors.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def errors
  @errors
end

#expires_onObject

Returns the value of attribute expires_on.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def expires_on
  @expires_on
end

#foldersObject

Returns the value of attribute folders.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def folders
  @folders
end

#just_boundObject

Returns the value of attribute just_bound.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def just_bound
  @just_bound
end

#recordsObject

Returns the value of attribute records.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def records
  @records
end

#warningsObject

Returns the value of attribute warnings.



513
514
515
# File 'lib/keeper_secrets_manager/dto.rb', line 513

def warnings
  @warnings
end