Class: KSequencing::ImageChoice

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



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

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

#create(options = {}) ⇒ Object



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

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

#find_by(options = {}) ⇒ Object



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

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