Sha256: 007db674664491ec01c61c49b080fcd9d30db25afdcc399052c3a3c3f4c87a0b

Contents?: true

Size: 313 Bytes

Versions: 15

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

module Typesense
  class Operations
    RESOURCE_PATH = '/operations'

    def initialize(api_call)
      @api_call = api_call
    end

    def perform(operation_name, query_params = {})
      @api_call.post("#{RESOURCE_PATH}/#{operation_name}", {}, query_params)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
typesense-3.0.0.rc1 lib/typesense/operations.rb
typesense-2.1.0 lib/typesense/operations.rb
typesense-2.1.0.rc2 lib/typesense/operations.rb
typesense-2.1.0.rc1 lib/typesense/operations.rb
typesense-2.0.0 lib/typesense/operations.rb
typesense-1.1.0 lib/typesense/operations.rb
typesense-1.0.0 lib/typesense/operations.rb
typesense-0.15.0 lib/typesense/operations.rb
typesense-0.14.1 lib/typesense/operations.rb
typesense-0.14.0 lib/typesense/operations.rb
typesense-0.13.0 lib/typesense/operations.rb
typesense-0.12.0 lib/typesense/operations.rb
typesense-0.11.1 lib/typesense/operations.rb
typesense-0.11.0 lib/typesense/operations.rb
typesense-0.10.0 lib/typesense/operations.rb