Class: KSequencing::Prediction
- Inherits:
-
Object
- Object
- KSequencing::Prediction
- 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( = {}) [:token] ||= KSequencing.project_key connection.get('/api/prime/predictions', ) end |
#create(options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/k_sequencing/predictions.rb', line 9 def create( = {}) [:token] ||= KSequencing.project_key connection.post('/api/prime/predictions', ) end |
#find_by(options = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/k_sequencing/predictions.rb', line 14 def find_by( = {}) [:token] ||= KSequencing.project_key [:path_param] = true connection.get("/api/prime/predictions/#{[:id]}", ) end |