Class: Typesense::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/typesense/key.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, api_call) ⇒ Key

Returns a new instance of Key.



5
6
7
8
# File 'lib/typesense/key.rb', line 5

def initialize(id, api_call)
  @id = id
  @api_call = api_call
end

Instance Method Details

#deleteObject



14
15
16
# File 'lib/typesense/key.rb', line 14

def delete
  @api_call.delete(endpoint_path)
end

#retrieveObject



10
11
12
# File 'lib/typesense/key.rb', line 10

def retrieve
  @api_call.get(endpoint_path)
end