Class: EventMachine::Protocols::Couchbase::Configuration
- Inherits:
-
Object
- Object
- EventMachine::Protocols::Couchbase::Configuration
- Defined in:
- lib/em-couchbase/configuration.rb
Instance Attribute Summary collapse
-
#bucket_name ⇒ Object
readonly
Returns the value of attribute bucket_name.
-
#bucket_type ⇒ Object
readonly
Returns the value of attribute bucket_type.
-
#hash_algorithm ⇒ Object
readonly
Returns the value of attribute hash_algorithm.
-
#node_locator ⇒ Object
readonly
Returns the value of attribute node_locator.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#num_replicas ⇒ Object
readonly
Returns the value of attribute num_replicas.
-
#sasl_password ⇒ Object
readonly
Returns the value of attribute sasl_password.
-
#vbucket_map ⇒ Object
readonly
Returns the value of attribute vbucket_map.
-
#vbucket_map_forward ⇒ Object
readonly
Returns the value of attribute vbucket_map_forward.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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_name ⇒ Object (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_type ⇒ Object (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_algorithm ⇒ Object (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_locator ⇒ Object (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 |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
28 29 30 |
# File 'lib/em-couchbase/configuration.rb', line 28 def nodes @nodes end |
#num_replicas ⇒ Object (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_password ⇒ Object (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_map ⇒ Object (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_forward ⇒ Object (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 |