Method: EPO::DB#initialize

Defined in:
lib/epo/core/db.rb

#initialize(models, params = {}) ⇒ DB

Creates a new DB models: the list of Welo::Resource models to use (i.e., classes)



20
21
22
23
24
25
# File 'lib/epo/core/db.rb', line 20

def initialize(models, params={})
  @models = models
  @extensions = params[:extensions] || ['.json']
  @identifying_sym = params[:identifying_sym] || :flat_db
  build!
end