Sha256: 45ea0e2681649967a732fc13cd5e463ca0eda86acf3358428c36634a5c5b5402
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module Typesense class Alias def initialize(configuration, name) @configuration = configuration @name = name end def retrieve ApiCall.new(@configuration).get(endpoint_path) end def delete ApiCall.new(@configuration).delete(endpoint_path) end private def endpoint_path "#{Aliases::RESOURCE_PATH}/#{@name}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typesense-0.2.0 | lib/typesense/alias.rb |