Sha256: 306bebacd3fc4a8be66f074d6635fc7dab3dd3f22462e4b7e9e3888989a4c83b
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module Typesense class Collection attr_reader :documents def initialize(configuration, name) @configuration = configuration @name = name @documents = Documents.new(@configuration, @name) end def retrieve ApiCall.new(@configuration).get(endpoint_path) end def delete ApiCall.new(@configuration).delete(endpoint_path) end private def endpoint_path "#{Collections::RESOURCE_PATH}/#{@name}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typesense-0.1.1 | lib/typesense/collection.rb |
typesense-0.1.0 | lib/typesense/collection.rb |