Class: CouchbaseOrm::Configuration::Index
- Inherits:
-
Object
- Object
- CouchbaseOrm::Configuration::Index
- Defined in:
- lib/couchbase-orm/configuration.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#migrations_path ⇒ Object
Returns the value of attribute migrations_path.
-
#num_replica ⇒ Object
Returns the value of attribute num_replica.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
Instance Method Summary collapse
- #effective_bucket ⇒ Object
-
#initialize ⇒ Index
constructor
A new instance of Index.
Constructor Details
#initialize ⇒ Index
Returns a new instance of Index.
8 9 10 11 12 13 |
# File 'lib/couchbase-orm/configuration.rb', line 8 def initialize @bucket = nil @num_replica = 0 @migrations_path = 'db/indexes' @schema_path = 'db/index_schema.rb' end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
6 7 8 |
# File 'lib/couchbase-orm/configuration.rb', line 6 def bucket @bucket end |
#migrations_path ⇒ Object
Returns the value of attribute migrations_path.
6 7 8 |
# File 'lib/couchbase-orm/configuration.rb', line 6 def migrations_path @migrations_path end |
#num_replica ⇒ Object
Returns the value of attribute num_replica.
6 7 8 |
# File 'lib/couchbase-orm/configuration.rb', line 6 def num_replica @num_replica end |
#schema_path ⇒ Object
Returns the value of attribute schema_path.
6 7 8 |
# File 'lib/couchbase-orm/configuration.rb', line 6 def schema_path @schema_path end |
Instance Method Details
#effective_bucket ⇒ Object
15 16 17 |
# File 'lib/couchbase-orm/configuration.rb', line 15 def effective_bucket bucket || CouchbaseOrm::Connection.config[:bucket] end |