Method: Couchbase::Protostellar::ResponseConverter::KV.extract_expiry_time
- Defined in:
- lib/couchbase/protostellar/response_converter/kv.rb
.extract_expiry_time(resp) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
141 142 143 144 145 146 147 |
# File 'lib/couchbase/protostellar/response_converter/kv.rb', line 141 def self.extract_expiry_time(resp) = resp.expiry return nil if .nil? Time.at(.seconds, .nanos, :nsec) end |