Class: Clustr::Adapter::Base
- Inherits:
-
Object
- Object
- Clustr::Adapter::Base
- Defined in:
- lib/clustr/adapter/base.rb
Overview
Base class for all implemented Adapters.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(options) ⇒ Base
constructor
Initializes a new Adapter class and associates the unique key for this cluster to the @key variable.
Constructor Details
#initialize(options) ⇒ Base
Initializes a new Adapter class and associates the unique key for this cluster to the @key variable. This key is required for all Adapters.
11 12 13 |
# File 'lib/clustr/adapter/base.rb', line 11 def initialize() @key = ["key"] end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/clustr/adapter/base.rb', line 6 def key @key end |