Class: Requestkit::Config
- Inherits:
-
Object
- Object
- Requestkit::Config
- Defined in:
- lib/requestkit/config.rb
Instance Attribute Summary collapse
-
#database_path ⇒ Object
Returns the value of attribute database_path.
-
#default_namespace ⇒ Object
Returns the value of attribute default_namespace.
-
#port ⇒ Object
Returns the value of attribute port.
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_path ⇒ Object
Returns the value of attribute database_path.
7 8 9 |
# File 'lib/requestkit/config.rb', line 7 def database_path @database_path end |
#default_namespace ⇒ Object
Returns the value of attribute default_namespace.
7 8 9 |
# File 'lib/requestkit/config.rb', line 7 def default_namespace @default_namespace end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/requestkit/config.rb', line 7 def port @port end |
#storage ⇒ Object
Returns the value of attribute storage.
7 8 9 |
# File 'lib/requestkit/config.rb', line 7 def storage @storage end |