Class: Aserto::Directory::V3::Config
- Inherits:
-
Object
- Object
- Aserto::Directory::V3::Config
- Defined in:
- lib/aserto/directory/v3/config.rb
Defined Under Namespace
Classes: BaseConfig
Instance Attribute Summary collapse
-
#exporter ⇒ Object
readonly
Returns the value of attribute exporter.
-
#importer ⇒ Object
readonly
Returns the value of attribute importer.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#reader ⇒ Object
readonly
Returns the value of attribute reader.
-
#writer ⇒ Object
readonly
Returns the value of attribute writer.
Instance Method Summary collapse
-
#initialize(config) ⇒ Config
constructor
A new instance of Config.
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
#exporter ⇒ Object (readonly)
Returns the value of attribute exporter.
9 10 11 |
# File 'lib/aserto/directory/v3/config.rb', line 9 def exporter @exporter end |
#importer ⇒ Object (readonly)
Returns the value of attribute importer.
9 10 11 |
# File 'lib/aserto/directory/v3/config.rb', line 9 def importer @importer end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
9 10 11 |
# File 'lib/aserto/directory/v3/config.rb', line 9 def model @model end |
#reader ⇒ Object (readonly)
Returns the value of attribute reader.
9 10 11 |
# File 'lib/aserto/directory/v3/config.rb', line 9 def reader @reader end |
#writer ⇒ Object (readonly)
Returns the value of attribute writer.
9 10 11 |
# File 'lib/aserto/directory/v3/config.rb', line 9 def writer @writer end |