Class: BackupNexus::Configuration
- Inherits:
-
Object
- Object
- BackupNexus::Configuration
- Defined in:
- lib/backup_nexus/configuration.rb
Instance Attribute Summary collapse
-
#database_name ⇒ Object
Returns the value of attribute database_name.
-
#database_url ⇒ Object
Returns the value of attribute database_url.
-
#database_yml ⇒ Object
Returns the value of attribute database_yml.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#table_prefix ⇒ Object
Returns the value of attribute table_prefix.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 |
# File 'lib/backup_nexus/configuration.rb', line 11 def initialize @enabled = false @database_url = nil @database_name = nil @database_yml = nil @table_prefix = "backup_nexus_" end |
Instance Attribute Details
#database_name ⇒ Object
Returns the value of attribute database_name.
7 8 9 |
# File 'lib/backup_nexus/configuration.rb', line 7 def database_name @database_name end |
#database_url ⇒ Object
Returns the value of attribute database_url.
6 7 8 |
# File 'lib/backup_nexus/configuration.rb', line 6 def database_url @database_url end |
#database_yml ⇒ Object
Returns the value of attribute database_yml.
8 9 10 |
# File 'lib/backup_nexus/configuration.rb', line 8 def database_yml @database_yml end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/backup_nexus/configuration.rb', line 5 def enabled @enabled end |
#table_prefix ⇒ Object
Returns the value of attribute table_prefix.
9 10 11 |
# File 'lib/backup_nexus/configuration.rb', line 9 def table_prefix @table_prefix end |