Class: Shikibu::Configuration
- Inherits:
-
Object
- Object
- Shikibu::Configuration
- Defined in:
- lib/shikibu.rb
Overview
Configuration object
Instance Attribute Summary collapse
-
#auto_migrate ⇒ Object
Returns the value of attribute auto_migrate.
-
#database_url ⇒ Object
Returns the value of attribute database_url.
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
-
#use_listen_notify ⇒ Object
Returns the value of attribute use_listen_notify.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
119 120 121 122 123 124 125 |
# File 'lib/shikibu.rb', line 119 def initialize @database_url = 'sqlite://shikibu.db' @service_name = 'shikibu' @auto_migrate = false @hooks = nil @use_listen_notify = nil # nil = auto-detect, true/false = manual end |
Instance Attribute Details
#auto_migrate ⇒ Object
Returns the value of attribute auto_migrate.
117 118 119 |
# File 'lib/shikibu.rb', line 117 def auto_migrate @auto_migrate end |
#database_url ⇒ Object
Returns the value of attribute database_url.
117 118 119 |
# File 'lib/shikibu.rb', line 117 def database_url @database_url end |
#hooks ⇒ Object
Returns the value of attribute hooks.
117 118 119 |
# File 'lib/shikibu.rb', line 117 def hooks @hooks end |
#service_name ⇒ Object
Returns the value of attribute service_name.
117 118 119 |
# File 'lib/shikibu.rb', line 117 def service_name @service_name end |
#use_listen_notify ⇒ Object
Returns the value of attribute use_listen_notify.
117 118 119 |
# File 'lib/shikibu.rb', line 117 def use_listen_notify @use_listen_notify end |