Class: QuickStore::Configuration

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

Overview

The Configuration class is used internally by QuickStore to create a singleton configuration. The key_separator defines the character which can be used to access nested store items (default is “/”). The file_path determines where the YAML file is stored.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @key_separator = '/'
end

Instance Attribute Details

#file_pathObject

Returns the value of attribute file_path.



8
9
10
# File 'lib/quick_store/configuration.rb', line 8

def file_path
  @file_path
end

#key_separatorObject

Returns the value of attribute key_separator.



8
9
10
# File 'lib/quick_store/configuration.rb', line 8

def key_separator
  @key_separator
end