Class: Knish::DbConfig
- Inherits:
-
Object
- Object
- Knish::DbConfig
- Defined in:
- lib/knish/db_config.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#data_filename ⇒ Object
21 22 23 |
# File 'lib/knish/db_config.rb', line 21 def data_filename @data_filename ||= 'data.json' end |
#db_directory ⇒ Object
5 6 7 |
# File 'lib/knish/db_config.rb', line 5 def db_directory @db_directory ||= `pwd`.chomp end |
#db_name ⇒ Object
13 14 15 |
# File 'lib/knish/db_config.rb', line 13 def db_name @db_name ||= 'knish' end |
#view_to_db_path ⇒ Object
17 18 19 |
# File 'lib/knish/db_config.rb', line 17 def view_to_db_path @view_to_db_path ||= '/../..' end |
Instance Method Details
#db_root ⇒ Object
9 10 11 |
# File 'lib/knish/db_config.rb', line 9 def db_root "#{db_directory}/#{db_name}" end |
#type_key ⇒ Object
25 26 27 |
# File 'lib/knish/db_config.rb', line 25 def type_key '___type' end |