Class: Ingenia::TagSet
- Inherits:
-
Object
- Object
- Ingenia::TagSet
- Includes:
- Api
- Defined in:
- lib/ingenia_api/tag_set.rb
Constant Summary collapse
- PATH =
'/tag_sets'- TAG_SET_KNOWN_PARAMS =
%i{ offset limit }
Constants included from Api
Class Method Summary collapse
-
.all(params = {}) ⇒ Object
Index your tag_sets.
-
.create(params = {}) ⇒ Object
Create a new tag_set.
- .destroy(id) ⇒ Object
-
.get(id) ⇒ Object
Get a single tag_set by id.
-
.update(id, params = {}) ⇒ Object
Update an existing tag_set.
Methods included from Api
#api_key, #api_key=, #classify, #debug=, #endpoint=, #similar_to, #status, #summarize, #train, #trained_tags, #verify_response, #version=
Class Method Details
.all(params = {}) ⇒ Object
Index your tag_sets
33 34 35 36 37 38 39 |
# File 'lib/ingenia_api/tag_set.rb', line 33 def self.all params = {} initialize_params params Ingenia::Api.verify_response do Remote.get(PATH, @params ) end end |
.create(params = {}) ⇒ Object
Create a new tag_set
15 16 17 18 19 20 21 |
# File 'lib/ingenia_api/tag_set.rb', line 15 def self.create params = {} initialize_params params Ingenia::Api.verify_response do Remote.post(PATH, @params ) end end |
.destroy(id) ⇒ Object
41 42 43 44 45 |
# File 'lib/ingenia_api/tag_set.rb', line 41 def self.destroy id Ingenia::Api.verify_response do Remote.delete("#{PATH}/#{id}", :params => { :api_key => Ingenia::Api.api_key} ) end end |