Class: MongoHashie::Configuration
- Inherits:
-
Object
- Object
- MongoHashie::Configuration
- Defined in:
- lib/mongo-hashie/base.rb
Class Method Summary collapse
- .create_meta_data ⇒ Object
- .create_meta_data=(value) ⇒ Object
- .database ⇒ Object
- .database=(value) ⇒ Object
- .host ⇒ Object
- .host=(value) ⇒ Object
- .pool_size ⇒ Object
- .pool_size=(value) ⇒ Object
- .port ⇒ Object
- .port=(value) ⇒ Object
- .timeout ⇒ Object
- .timeout=(value) ⇒ Object
Class Method Details
.create_meta_data ⇒ Object
77 78 79 |
# File 'lib/mongo-hashie/base.rb', line 77 def self. @@create_meta_data ||= true end |
.create_meta_data=(value) ⇒ Object
80 |
# File 'lib/mongo-hashie/base.rb', line 80 def self.(value); @@create_meta_data = value; end |
.database ⇒ Object
52 53 54 |
# File 'lib/mongo-hashie/base.rb', line 52 def self.database @@database ||= 'mongohashie' end |
.database=(value) ⇒ Object
55 |
# File 'lib/mongo-hashie/base.rb', line 55 def self.database=(value); @@database = value; end |
.host ⇒ Object
57 58 59 |
# File 'lib/mongo-hashie/base.rb', line 57 def self.host @@host ||= 'localhost' end |
.host=(value) ⇒ Object
60 |
# File 'lib/mongo-hashie/base.rb', line 60 def self.host=(value); @@host = value; end |
.pool_size ⇒ Object
67 68 69 |
# File 'lib/mongo-hashie/base.rb', line 67 def self.pool_size @@pool_size ||= 5 end |
.pool_size=(value) ⇒ Object
70 |
# File 'lib/mongo-hashie/base.rb', line 70 def self.pool_size=(value); @@pool_size = value; end |
.port ⇒ Object
62 63 64 |
# File 'lib/mongo-hashie/base.rb', line 62 def self.port @@port ||= 27017 end |
.port=(value) ⇒ Object
65 |
# File 'lib/mongo-hashie/base.rb', line 65 def self.port=(value); @@port = value; end |
.timeout ⇒ Object
72 73 74 |
# File 'lib/mongo-hashie/base.rb', line 72 def self.timeout @@timeout ||= 5 end |
.timeout=(value) ⇒ Object
75 |
# File 'lib/mongo-hashie/base.rb', line 75 def self.timeout=(value); @@timeout = value; end |