Sha256: 1fe6b0e61673abc0a211fd73f9f1e496612d8c17831734c250a34f421bb7022f
Contents?: true
Size: 389 Bytes
Versions: 4
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true module Typesense class Key def initialize(id, api_call) @id = id @api_call = api_call end def retrieve @api_call.get(endpoint_path) end def delete @api_call.delete(endpoint_path) end private def endpoint_path "#{Keys::RESOURCE_PATH}/#{URI.encode_www_form_component(@id)}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
typesense-3.0.0.rc1 | lib/typesense/key.rb |
typesense-2.1.0 | lib/typesense/key.rb |
typesense-2.1.0.rc2 | lib/typesense/key.rb |
typesense-2.1.0.rc1 | lib/typesense/key.rb |