Class: ShadyDB::Configuration
- Inherits:
-
Object
- Object
- ShadyDB::Configuration
- Defined in:
- lib/shadydb/configuration.rb
Instance Attribute Summary collapse
-
#data_directory ⇒ Object
Returns the value of attribute data_directory.
-
#format ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/shadydb/configuration.rb', line 5 def initialize @data_directory = '/data/db' @format = :json end |
Instance Attribute Details
#data_directory ⇒ Object
Returns the value of attribute data_directory.
3 4 5 |
# File 'lib/shadydb/configuration.rb', line 3 def data_directory @data_directory end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/shadydb/configuration.rb', line 3 def format @format end |