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



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

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

#create_image_closed_questions(options = {}) ⇒ Object



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

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

#create_image_messages(options = {}) ⇒ Object



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

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

#create_image_photo_tags(options = {}) ⇒ Object



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

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

#create_prediction(options = {}) ⇒ Object



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

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 ——————————-



57
58
59
60
# File 'lib/k_sequencing/client.rb', line 57

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



62
63
64
65
# File 'lib/k_sequencing/client.rb', line 62

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



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

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



72
73
74
75
# File 'lib/k_sequencing/client.rb', line 72

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



77
78
79
80
# File 'lib/k_sequencing/client.rb', line 77

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



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

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 ———————————-



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

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

#get_image_closed_question(options = {}) ⇒ Object



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

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

#get_image_message(options = {}) ⇒ Object



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

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

#get_image_photo_tag(options = {}) ⇒ Object



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

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

#get_prediction(options = {}) ⇒ Object



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

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