Sha256: f4584403cfee271c9fa91f42af55ab340580591d8a46b4038067115141c1d258
Contents?: true
Size: 406 Bytes
Versions: 6
Compression:
Stored size: 406 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}/#{URI.encode_www_form_component(@name)}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems