Class: DevArchive::Stores::Mysql::BoundStore

Inherits:
Object
  • Object
show all
Defined in:
lib/dev_archive/stores.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#namesObject (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