Module: Swiftype::Client::Engine
- Included in:
- Swiftype::Client
- Defined in:
- lib/swiftype/client.rb
Instance Method Summary collapse
- #create_engine(attributes) ⇒ Object
- #destroy_engine(id) ⇒ Object
- #engine(id) ⇒ Object
- #update_engine(id, attributes) ⇒ Object
Instance Method Details
#create_engine(attributes) ⇒ Object
13 14 15 |
# File 'lib/swiftype/client.rb', line 13 def create_engine(attributes) Swiftype::Engine.new(attributes).create! end |
#destroy_engine(id) ⇒ Object
23 24 25 |
# File 'lib/swiftype/client.rb', line 23 def destroy_engine(id) Swiftype::Engine.find(id).destroy! end |