Class: CouchbaseOrm::IndexSchema::Loader
- Inherits:
-
Object
- Object
- CouchbaseOrm::IndexSchema::Loader
- Defined in:
- lib/couchbase-orm/index_schema/loader.rb
Instance Method Summary collapse
-
#initialize(path: CouchbaseOrm.config.index.schema_path, migration_class: CouchbaseOrm::IndexMigration) ⇒ Loader
constructor
A new instance of Loader.
- #load ⇒ Object
Constructor Details
#initialize(path: CouchbaseOrm.config.index.schema_path, migration_class: CouchbaseOrm::IndexMigration) ⇒ Loader
Returns a new instance of Loader.
6 7 8 9 |
# File 'lib/couchbase-orm/index_schema/loader.rb', line 6 def initialize(path: CouchbaseOrm.config.index.schema_path, migration_class: CouchbaseOrm::IndexMigration) @path = path @migration_class = migration_class end |
Instance Method Details
#load ⇒ Object
11 12 13 14 15 |
# File 'lib/couchbase-orm/index_schema/loader.rb', line 11 def load indexes, version = read_definition apply_definition(indexes) version end |