Sha256: 9f943d3c973a5dcf04c18ea110bd33e017a12e42f90ae2338db46e896968fa49
Contents?: true
Size: 528 Bytes
Versions: 7
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Typesense class Collection attr_reader :documents, :overrides def initialize(name, api_call) @name = name @api_call = api_call @documents = Documents.new(@name, @api_call) @overrides = Overrides.new(@name, @api_call) end def retrieve @api_call.get(endpoint_path) end def delete @api_call.delete(endpoint_path) end private def endpoint_path "#{Collections::RESOURCE_PATH}/#{@name}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems