Class: KSequencing::Prediction

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



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

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

#create(options = {}) ⇒ Object



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

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

#find_by(options = {}) ⇒ Object



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

def find_by(options = {})
  options[:token] ||= KSequencing.project_key
  options[:path_param] = true
  connection.get("/api/prime/predictions/#{options[:id]}", options)
end