Class: Relaton::Index::Config
- Inherits:
-
Object
- Object
- Relaton::Index::Config
- Defined in:
- lib/relaton/index/config.rb
Overview
Configuration class for Relaton::Index
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#storage_dir ⇒ Object
Returns the value of attribute storage_dir.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Set default values.
Constructor Details
#initialize ⇒ Config
Set default values
12 13 14 15 16 |
# File 'lib/relaton/index/config.rb', line 12 def initialize @storage = FileStorage @storage_dir = Dir.home @filename = "index.yaml" end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
7 8 9 |
# File 'lib/relaton/index/config.rb', line 7 def filename @filename end |
#storage ⇒ Object
Returns the value of attribute storage.
7 8 9 |
# File 'lib/relaton/index/config.rb', line 7 def storage @storage end |
#storage_dir ⇒ Object
Returns the value of attribute storage_dir.
7 8 9 |
# File 'lib/relaton/index/config.rb', line 7 def storage_dir @storage_dir end |