Module: Swiftype::Easy::DocumentType
- Included in:
- Swiftype::Easy
- Defined in:
- lib/swiftype/easy.rb
Instance Method Summary collapse
- #create_document_type(engine_id, document_type = {}) ⇒ Object
- #destroy_document_type(engine_id, document_type_id) ⇒ Object
- #document_types(engine_id) ⇒ Object
Instance Method Details
#create_document_type(engine_id, document_type = {}) ⇒ Object
35 36 37 |
# File 'lib/swiftype/easy.rb', line 35 def create_document_type(engine_id, document_type={}) post("engines/#{engine_id}/document_types.json", :document_type => document_type) end |
#destroy_document_type(engine_id, document_type_id) ⇒ Object
38 39 40 |
# File 'lib/swiftype/easy.rb', line 38 def destroy_document_type(engine_id, document_type_id) delete("engines/#{engine_id}/document_types/#{document_type_id}") end |
#document_types(engine_id) ⇒ Object
32 33 34 |
# File 'lib/swiftype/easy.rb', line 32 def document_types(engine_id) get("engines/#{engine_id}/document_types.json") end |