Class: Relaton::Index::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton/index/config.rb

Overview

Configuration class for Relaton::Index

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#filenameObject

Returns the value of attribute filename.



7
8
9
# File 'lib/relaton/index/config.rb', line 7

def filename
  @filename
end

#storageObject

Returns the value of attribute storage.



7
8
9
# File 'lib/relaton/index/config.rb', line 7

def storage
  @storage
end

#storage_dirObject

Returns the value of attribute storage_dir.



7
8
9
# File 'lib/relaton/index/config.rb', line 7

def storage_dir
  @storage_dir
end