Sha256: 1d4b49bd459273ace2be8a33c8e9e06e63dfe7f498146a7e5fa7eb1e9f5fa65b
Contents?: true
Size: 431 Bytes
Versions: 6
Compression:
Stored size: 431 Bytes
Contents
# frozen_string_literal: true module Typesense class Preset def initialize(preset_name, api_call) @preset_name = preset_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 "#{Presets::RESOURCE_PATH}/#{URI.encode_www_form_component(@preset_name)}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems