Class: MongoHashie::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo-hashie/base.rb

Class Method Summary collapse

Class Method Details

.create_meta_dataObject



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.create_meta_data=(value); @@create_meta_data = value; end

.databaseObject



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

.hostObject



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_sizeObject



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

.portObject



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

.timeoutObject



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