class Typesense::Key
Public Class Methods
new(id, api_call)
click to toggle source
# File lib/typesense/key.rb, line 5 def initialize(id, api_call) @id = id @api_call = api_call end
Public Instance Methods
delete()
click to toggle source
# File lib/typesense/key.rb, line 14 def delete @api_call.delete(endpoint_path) end
retrieve()
click to toggle source
# File lib/typesense/key.rb, line 10 def retrieve @api_call.get(endpoint_path) end
Private Instance Methods
endpoint_path()
click to toggle source
# File lib/typesense/key.rb, line 20 def endpoint_path "#{Keys::RESOURCE_PATH}/#{@id}" end