Class: KSequencing::Client
- Inherits:
-
Object
- Object
- KSequencing::Client
- Defined in:
- lib/k_sequencing/client.rb
Overview
:nodoc:
Instance Method Summary collapse
- #create_image_choices(options = {}) ⇒ Object
- #create_image_closed_questions(options = {}) ⇒ Object
- #create_image_messages(options = {}) ⇒ Object
- #create_image_photo_tags(options = {}) ⇒ Object
- #create_prediction(options = {}) ⇒ Object
-
#find_by_id_image_choice(options = {}) ⇒ Object
—————————— find by id ——————————-.
- #find_by_id_image_closed_question(options = {}) ⇒ Object
- #find_by_id_image_message(options = {}) ⇒ Object
- #find_by_id_image_photo_tag(options = {}) ⇒ Object
- #find_by_id_prediction(id, options = {}) ⇒ Object
- #find_image(id, options = {}) ⇒ Object
-
#get_image_choice(options = {}) ⇒ Object
——————————– list data ———————————-.
- #get_image_closed_question(options = {}) ⇒ Object
- #get_image_message(options = {}) ⇒ Object
- #get_image_photo_tag(options = {}) ⇒ Object
- #get_prediction(options = {}) ⇒ Object
Instance Method Details
#create_image_choices(options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/k_sequencing/client.rb', line 4 def create_image_choices( = {}) [:token] ||= KSequencing.project_key connection.post('/api/images/choices', ) end |
#create_image_closed_questions(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/k_sequencing/client.rb', line 9 def create_image_closed_questions( = {}) [:token] ||= KSequencing.project_key connection.post('/api/images/closed_questions', ) end |
#create_image_messages(options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/k_sequencing/client.rb', line 14 def ( = {}) [:token] ||= KSequencing.project_key connection.post('/api/images/messages', ) end |
#create_image_photo_tags(options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/k_sequencing/client.rb', line 19 def ( = {}) [:token] ||= KSequencing.project_key connection.post('/api/images/photo_tags', ) end |
#create_prediction(options = {}) ⇒ Object
24 25 26 27 |
# File 'lib/k_sequencing/client.rb', line 24 def create_prediction( = {}) [:token] ||= KSequencing.project_key connection.post('/api/prime/predictions', ) end |
#find_by_id_image_choice(options = {}) ⇒ Object
—————————— find by id ——————————-
56 57 58 59 |
# File 'lib/k_sequencing/client.rb', line 56 def find_by_id_image_choice( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/choice', ) end |
#find_by_id_image_closed_question(options = {}) ⇒ Object
61 62 63 64 |
# File 'lib/k_sequencing/client.rb', line 61 def find_by_id_image_closed_question( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/closed_question', ) end |
#find_by_id_image_message(options = {}) ⇒ Object
66 67 68 69 |
# File 'lib/k_sequencing/client.rb', line 66 def ( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/message', ) end |
#find_by_id_image_photo_tag(options = {}) ⇒ Object
71 72 73 74 |
# File 'lib/k_sequencing/client.rb', line 71 def find_by_id_image_photo_tag( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/photo_tag', ) end |
#find_by_id_prediction(id, options = {}) ⇒ Object
76 77 78 79 |
# File 'lib/k_sequencing/client.rb', line 76 def find_by_id_prediction(id, = {}) [:token] ||= KSequencing.project_key connection.get("/api/prime/predictions/#{id}", ) end |
#find_image(id, options = {}) ⇒ Object
81 82 83 84 |
# File 'lib/k_sequencing/client.rb', line 81 def find_image(id, = {}) [:token] ||= KSequencing.project_key connection.get("/api/projects/images/#{id}", ) end |
#get_image_choice(options = {}) ⇒ Object
——————————– list data ———————————-
30 31 32 33 |
# File 'lib/k_sequencing/client.rb', line 30 def get_image_choice( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/choices', ) end |
#get_image_closed_question(options = {}) ⇒ Object
35 36 37 38 |
# File 'lib/k_sequencing/client.rb', line 35 def get_image_closed_question( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/closed_questions', ) end |
#get_image_message(options = {}) ⇒ Object
40 41 42 43 |
# File 'lib/k_sequencing/client.rb', line 40 def ( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/messages', ) end |
#get_image_photo_tag(options = {}) ⇒ Object
45 46 47 48 |
# File 'lib/k_sequencing/client.rb', line 45 def get_image_photo_tag( = {}) [:token] ||= KSequencing.project_key connection.get('/api/images/photo_tags', ) end |
#get_prediction(options = {}) ⇒ Object
50 51 52 53 |
# File 'lib/k_sequencing/client.rb', line 50 def get_prediction( = {}) [:token] ||= KSequencing.project_key connection.get('/api/prime/predictions', ) end |