Class: CassandraObject::Identity::CustomKeyFactory
- Inherits:
-
AbstractKeyFactory
- Object
- AbstractKeyFactory
- CassandraObject::Identity::CustomKeyFactory
- Defined in:
- lib/cassandra_object/identity/custom_key_factory.rb
Defined Under Namespace
Classes: CustomKey
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #create(paramized_key) ⇒ Object
-
#initialize(options) ⇒ CustomKeyFactory
constructor
A new instance of CustomKeyFactory.
- #next_key(object) ⇒ Object
- #parse(paramized_key) ⇒ Object
Constructor Details
#initialize(options) ⇒ CustomKeyFactory
Returns a new instance of CustomKeyFactory.
32 33 34 |
# File 'lib/cassandra_object/identity/custom_key_factory.rb', line 32 def initialize() @method = [:method] end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
30 31 32 |
# File 'lib/cassandra_object/identity/custom_key_factory.rb', line 30 def method @method end |
Instance Method Details
#create(paramized_key) ⇒ Object
44 45 46 |
# File 'lib/cassandra_object/identity/custom_key_factory.rb', line 44 def create(paramized_key) CustomKey.new(paramized_key) end |