Sha256: f0cfad46679a18d707c54793584983f06d2ec7be95f01c73e46949a8985110fd
Contents?: true
Size: 505 Bytes
Versions: 10
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true module Typesense class Synonym def initialize(collection_name, synonym_id, api_call) @collection_name = collection_name @synonym_id = synonym_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 "#{Collections::RESOURCE_PATH}/#{@collection_name}#{Synonyms::RESOURCE_PATH}/#{@synonym_id}" end end end
Version data entries
10 entries across 10 versions & 1 rubygems