Sha256: f4584403cfee271c9fa91f42af55ab340580591d8a46b4038067115141c1d258
Contents?: true
Size: 406 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
typesense-3.0.0.rc1 | lib/typesense/alias.rb |
typesense-2.1.0 | lib/typesense/alias.rb |
typesense-2.1.0.rc2 | lib/typesense/alias.rb |
typesense-2.1.0.rc1 | lib/typesense/alias.rb |