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