class Typesense::Collection
Attributes
documents[R]
overrides[R]
synonyms[R]
Public Class Methods
new(name, api_call)
click to toggle source
# File lib/typesense/collection.rb, line 7 def initialize(name, api_call) @name = name @api_call = api_call @documents = Documents.new(@name, @api_call) @overrides = Overrides.new(@name, @api_call) @synonyms = Synonyms.new(@name, @api_call) end
Public Instance Methods
delete()
click to toggle source
# File lib/typesense/collection.rb, line 19 def delete @api_call.delete(endpoint_path) end
retrieve()
click to toggle source
# File lib/typesense/collection.rb, line 15 def retrieve @api_call.get(endpoint_path) end
Private Instance Methods
endpoint_path()
click to toggle source
# File lib/typesense/collection.rb, line 25 def endpoint_path "#{Collections::RESOURCE_PATH}/#{@name}" end