Class: DevArchive::Stores::Mysql::BoundStore
- Inherits:
-
Object
- Object
- DevArchive::Stores::Mysql::BoundStore
- Defined in:
- lib/dev_archive/stores.rb
Instance Attribute Summary collapse
-
#names ⇒ Object
readonly
Returns the value of attribute names.
Instance Method Summary collapse
- #backup(dir) ⇒ Object
-
#initialize(names) ⇒ BoundStore
constructor
A new instance of BoundStore.
Constructor Details
#initialize(names) ⇒ BoundStore
Returns a new instance of BoundStore.
6 7 8 |
# File 'lib/dev_archive/stores.rb', line 6 def initialize(names) @names = names end |
Instance Attribute Details
#names ⇒ Object (readonly)
Returns the value of attribute names.
5 6 7 |
# File 'lib/dev_archive/stores.rb', line 5 def names @names end |
Instance Method Details
#backup(dir) ⇒ Object
10 11 12 |
# File 'lib/dev_archive/stores.rb', line 10 def backup(dir) Backup.call(names, dir) end |