struct

CryBase::Interfaces::Endpoint

Inherits Struct < Value < Object

Common contract every database-specific endpoint in CryBase must satisfy. Subtypes add their own service/role metadata and stringification rules on top of this base.

ep = CryBase::CouchBase::Endpoint.new("localhost", 11210, CryBase::CouchBase::Service::KV, false)
ep.is_a?(CryBase::Interfaces::Endpoint) # => true
ep.host                                 # => "localhost"
ep.port                                 # => 11210
ep.tls?                                 # => false

Constructors

Instance methods

host
Source
initialize
Source
port
Source
tls?
Source