Class: EventMachine::Protocols::Couchbase::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/em-couchbase/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Configuration

Returns a new instance of Configuration.



34
35
36
37
38
39
40
# File 'lib/em-couchbase/configuration.rb', line 34

def initialize(attributes = {})
  attributes.each do |k, v|
    if respond_to?(k)
      instance_variable_set("@#{k}", v)
    end
  end
end

Instance Attribute Details

#bucket_nameObject (readonly)

Returns the value of attribute bucket_name.



24
25
26
# File 'lib/em-couchbase/configuration.rb', line 24

def bucket_name
  @bucket_name
end

#bucket_typeObject (readonly)

Returns the value of attribute bucket_type.



25
26
27
# File 'lib/em-couchbase/configuration.rb', line 25

def bucket_type
  @bucket_type
end

#hash_algorithmObject (readonly)

Returns the value of attribute hash_algorithm.



29
30
31
# File 'lib/em-couchbase/configuration.rb', line 29

def hash_algorithm
  @hash_algorithm
end

#node_locatorObject (readonly)

Returns the value of attribute node_locator.



27
28
29
# File 'lib/em-couchbase/configuration.rb', line 27

def node_locator
  @node_locator
end

#nodesObject (readonly)

Returns the value of attribute nodes.



28
29
30
# File 'lib/em-couchbase/configuration.rb', line 28

def nodes
  @nodes
end

#num_replicasObject (readonly)

Returns the value of attribute num_replicas.



30
31
32
# File 'lib/em-couchbase/configuration.rb', line 30

def num_replicas
  @num_replicas
end

#sasl_passwordObject (readonly)

Returns the value of attribute sasl_password.



26
27
28
# File 'lib/em-couchbase/configuration.rb', line 26

def sasl_password
  @sasl_password
end

#vbucket_mapObject (readonly)

Returns the value of attribute vbucket_map.



31
32
33
# File 'lib/em-couchbase/configuration.rb', line 31

def vbucket_map
  @vbucket_map
end

#vbucket_map_forwardObject (readonly)

Returns the value of attribute vbucket_map_forward.



32
33
34
# File 'lib/em-couchbase/configuration.rb', line 32

def vbucket_map_forward
  @vbucket_map_forward
end