Sha256: 9c327bc248a2fa283cea4cd49ec3a2bdc1568f966978b00bd1e5c220abed4f9c
Contents?: true
Size: 375 Bytes
Versions: 24
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true module Typesense class Alias def initialize(name, api_call) @name = name @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 "#{Aliases::RESOURCE_PATH}/#{@name}" end end end
Version data entries
24 entries across 24 versions & 1 rubygems