abstract struct
CouchBase::Interfaces::Endpoint
- CouchBase::Interfaces::Endpoint
- Struct
- Value
- Object
Overview
Common contract for Couchbase endpoints. Subtypes add their own service/role metadata and stringification rules on top of this base.
ep = CouchBase::Endpoint.new("localhost", 11210, CouchBase::Service::KV, false)
ep.is_a?(CouchBase::Interfaces::Endpoint) # => true
ep.host # => "localhost"
ep.port # => 11210
ep.tls? # => false