Class: Conflow::Redis::Field Private
- Inherits:
-
Object
- Object
- Conflow::Redis::Field
- Defined in:
- lib/conflow/redis/field.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class for fields. All fields are assigned a Redis key.
Direct Known Subclasses
Flow, Job, Promise, ArrayField, HashField, RawValueField, SetField, SortedSetField, ValueField
Instance Attribute Summary collapse
-
#key ⇒ Object
(also: #id)
readonly
private
Redis key.
Instance Method Summary collapse
-
#initialize(key) ⇒ Field
constructor
private
A new instance of Field.
Constructor Details
#initialize(key) ⇒ Field
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Field.
13 14 15 |
# File 'lib/conflow/redis/field.rb', line 13 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly) Also known as: id
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Redis key
9 10 11 |
# File 'lib/conflow/redis/field.rb', line 9 def key @key end |