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