Class: Storage

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/storage.rb

Instance Method Summary collapse

Instance Method Details

#build(db) ⇒ Object



14
15
16
# File 'lib/storage.rb', line 14

def build(db)
  strategy.build(db)
end

#strategyObject



6
7
8
# File 'lib/storage.rb', line 6

def strategy
  @strategy
end

#strategy=(strategy) ⇒ Object



10
11
12
# File 'lib/storage.rb', line 10

def strategy=(strategy)
  @strategy = strategy
end