Class: OsCtld::Container::Adaptor::Base
- Inherits:
-
Object
- Object
- OsCtld::Container::Adaptor::Base
- Includes:
- OsCtl::Lib::Utils::Log
- Defined in:
- lib/osctld/container/adaptors/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
protected
Returns the value of attribute config.
-
#ct ⇒ Object
readonly
protected
Returns the value of attribute ct.
Class Method Summary collapse
Instance Method Summary collapse
-
#adapt ⇒ Hash
Adapted config.
-
#initialize(ct, config) ⇒ Base
constructor
A new instance of Base.
- #log_type ⇒ Object
Constructor Details
#initialize(ct, config) ⇒ Base
Returns a new instance of Base.
11 12 13 14 |
# File 'lib/osctld/container/adaptors/base.rb', line 11 def initialize(ct, config) @ct = ct @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly, protected)
Returns the value of attribute config.
27 28 29 |
# File 'lib/osctld/container/adaptors/base.rb', line 27 def config @config end |
#ct ⇒ Object (readonly, protected)
Returns the value of attribute ct.
27 28 29 |
# File 'lib/osctld/container/adaptors/base.rb', line 27 def ct @ct end |
Class Method Details
Instance Method Details
#adapt ⇒ Hash
Returns adapted config.
17 18 19 |
# File 'lib/osctld/container/adaptors/base.rb', line 17 def adapt config end |
#log_type ⇒ Object
21 22 23 |
# File 'lib/osctld/container/adaptors/base.rb', line 21 def log_type ct.log_type end |