Sha256: 510a0d10a6ee96bda598532b79e42bb59977492677a685f6e5f5e4d66565242b
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 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}/#{@preset_name}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typesense-1.1.0 | lib/typesense/preset.rb |
typesense-1.0.0 | lib/typesense/preset.rb |
typesense-0.15.0 | lib/typesense/preset.rb |