Class: Harrods::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/harrods/configuration.rb', line 5

def initialize
  @redis_connection_string  = "redis://localhost:6379/0"
  @redis_namespace          = "harrods"
  @database_path            = "Users/john/Workspace/testapp/.harrods/development.db"
end

Instance Attribute Details

#database_pathObject

Returns the value of attribute database_path.



3
4
5
# File 'lib/harrods/configuration.rb', line 3

def database_path
  @database_path
end

#redis_connection_stringObject

Returns the value of attribute redis_connection_string.



3
4
5
# File 'lib/harrods/configuration.rb', line 3

def redis_connection_string
  @redis_connection_string
end

#redis_namespaceObject

Returns the value of attribute redis_namespace.



3
4
5
# File 'lib/harrods/configuration.rb', line 3

def redis_namespace
  @redis_namespace
end