Class: Conflow::Redis::Field Private

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • key (String)

    Redis key to store the field in



13
14
15
# File 'lib/conflow/redis/field.rb', line 13

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (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