Class: Aserto::Directory::V3::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/aserto/directory/v3/config.rb

Defined Under Namespace

Classes: BaseConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Config

Returns a new instance of Config.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/aserto/directory/v3/config.rb', line 11

def initialize(config)
  @base = {
    url: config[:url],
    api_key: config[:api_key],
    tenant_id: config[:tenant_id],
    cert_path: config[:cert_path]
  }

  @reader = build(**(config[:reader] || {}))
  @writer = build(**(config[:writer] || {}))
  @importer = build(**(config[:importer] || {}))
  @exporter = build(**(config[:exporter] || {}))
  @model = build(**(config[:model] || {}))
end

Instance Attribute Details

#exporterObject (readonly)

Returns the value of attribute exporter.



9
10
11
# File 'lib/aserto/directory/v3/config.rb', line 9

def exporter
  @exporter
end

#importerObject (readonly)

Returns the value of attribute importer.



9
10
11
# File 'lib/aserto/directory/v3/config.rb', line 9

def importer
  @importer
end

#modelObject (readonly)

Returns the value of attribute model.



9
10
11
# File 'lib/aserto/directory/v3/config.rb', line 9

def model
  @model
end

#readerObject (readonly)

Returns the value of attribute reader.



9
10
11
# File 'lib/aserto/directory/v3/config.rb', line 9

def reader
  @reader
end

#writerObject (readonly)

Returns the value of attribute writer.



9
10
11
# File 'lib/aserto/directory/v3/config.rb', line 9

def writer
  @writer
end