Class: RemoteDatabaseCleaner::ConfigStruct
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- RemoteDatabaseCleaner::ConfigStruct
- Defined in:
- lib/remote_database_cleaner/config_struct.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.block_to_hash(block = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/remote_database_cleaner/config_struct.rb', line 5 def self.block_to_hash(block = nil) config = self.new if block block.call(config) config.to_hash else {} end end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 |
# File 'lib/remote_database_cleaner/config_struct.rb', line 15 def to_hash @table end |