Class: Clustr::Adapter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/clustr/adapter/base.rb

Overview

Base class for all implemented Adapters.

Direct Known Subclasses

SimpleDB

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @key = options["key"]
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/clustr/adapter/base.rb', line 6

def key
  @key
end