Class: KSequencing::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/k_sequencing/client.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_image_choices(options = {}) ⇒ Object



4
5
6
7
# File 'lib/k_sequencing/client.rb', line 4

def create_image_choices(options = {})
  options[:token] ||= KSequencing.project_key
  connection.post('/api/images/choices', options)
end

#create_image_closed_questions(options = {}) ⇒ Object



9
10
11
12
# File 'lib/k_sequencing/client.rb', line 9

def create_image_closed_questions(options = {})
  options[:token] ||= KSequencing.project_key
  connection.post('/api/images/closed_questions', options)
end

#create_image_messages(options = {}) ⇒ Object



14
15
16
17
# File 'lib/k_sequencing/client.rb', line 14

def create_image_messages(options = {})
  options[:token] ||= KSequencing.project_key
  connection.post('/api/images/messages', options)
end

#create_image_photo_tags(options = {}) ⇒ Object



19
20
21
22
# File 'lib/k_sequencing/client.rb', line 19

def create_image_photo_tags(options = {})
  options[:token] ||= KSequencing.project_key
  connection.post('/api/images/photo_tags', options)
end

#create_prediction(options = {}) ⇒ Object



24
25
26
27
# File 'lib/k_sequencing/client.rb', line 24

def create_prediction(options = {})
  options[:token] ||= KSequencing.project_key
  connection.post('/api/prime/predictions', options)
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(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/choice', options)
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(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/closed_question', options)
end

#find_by_id_image_message(options = {}) ⇒ Object



66
67
68
69
# File 'lib/k_sequencing/client.rb', line 66

def find_by_id_image_message(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/message', options)
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(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/photo_tag', options)
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, options = {})
  options[:token] ||= KSequencing.project_key
  connection.get("/api/prime/predictions/#{id}", options)
end

#find_image(id, options = {}) ⇒ Object



81
82
83
84
# File 'lib/k_sequencing/client.rb', line 81

def find_image(id, options = {})
  options[:token] ||= KSequencing.project_key
  connection.get("/api/projects/images/#{id}", options)
end

#get_image_choice(options = {}) ⇒ Object

——————————– list data ———————————-



30
31
32
33
# File 'lib/k_sequencing/client.rb', line 30

def get_image_choice(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/choices', options)
end

#get_image_closed_question(options = {}) ⇒ Object



35
36
37
38
# File 'lib/k_sequencing/client.rb', line 35

def get_image_closed_question(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/closed_questions', options)
end

#get_image_message(options = {}) ⇒ Object



40
41
42
43
# File 'lib/k_sequencing/client.rb', line 40

def get_image_message(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/messages', options)
end

#get_image_photo_tag(options = {}) ⇒ Object



45
46
47
48
# File 'lib/k_sequencing/client.rb', line 45

def get_image_photo_tag(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/images/photo_tags', options)
end

#get_prediction(options = {}) ⇒ Object



50
51
52
53
# File 'lib/k_sequencing/client.rb', line 50

def get_prediction(options = {})
  options[:token] ||= KSequencing.project_key
  connection.get('/api/prime/predictions', options)
end