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
42 43 44 |
# File 'lib/swiftype/easy.rb', line 42 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
45 46 47 |
# File 'lib/swiftype/easy.rb', line 45 def destroy_document_type(engine_id, document_type_id) delete("engines/#{engine_id}/document_types/#{document_type_id}") end |
#document_types(engine_id) ⇒ Object
39 40 41 |
# File 'lib/swiftype/easy.rb', line 39 def document_types(engine_id) get("engines/#{engine_id}/document_types.json") end |