Class: Typesense::Key
- Inherits:
-
Object
- Object
- Typesense::Key
- Defined in:
- lib/typesense/key.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(id, api_call) ⇒ Key
constructor
A new instance of Key.
- #retrieve ⇒ Object
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
#delete ⇒ Object
14 15 16 |
# File 'lib/typesense/key.rb', line 14 def delete @api_call.delete(endpoint_path) end |
#retrieve ⇒ Object
10 11 12 |
# File 'lib/typesense/key.rb', line 10 def retrieve @api_call.get(endpoint_path) end |