Class: Requestkit::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
13
14
15
16
# File 'lib/requestkit/config.rb', line 9

def initialize
  @port = 4000
  @storage = "memory"
  @database_path = File.join(Dir.home, ".config", "requestkit", "requestkit.db")
  @default_namespace = "default"

  load!
end

Instance Attribute Details

#database_pathObject

Returns the value of attribute database_path.



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

def database_path
  @database_path
end

#default_namespaceObject

Returns the value of attribute default_namespace.



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

def default_namespace
  @default_namespace
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#storageObject

Returns the value of attribute storage.



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

def storage
  @storage
end