Class: Redstruct::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/redstruct/configuration.rb

Overview

Simple class holding the Redstruct configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration



12
13
14
15
# File 'lib/redstruct/configuration.rb', line 12

def initialize
  @default_connection = nil
  @default_namespace = nil
end

Instance Attribute Details

#default_connectionConnectionPool, Redis

Returns the default redis-rb connection, or a pool of said connections

Returns:

  • (ConnectionPool, Redis)

    the default redis-rb connection, or a pool of said connections



7
8
9
# File 'lib/redstruct/configuration.rb', line 7

def default_connection
  @default_connection
end

#default_namespaceString

Returns Default namespace for factories

Returns:

  • (String)

    Default namespace for factories



10
11
12
# File 'lib/redstruct/configuration.rb', line 10

def default_namespace
  @default_namespace
end