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