sequencescape-client-api 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b6388e96edf75d53a8f59323fd5a45efdd7274238580cf0296fa1597c92beed
4
- data.tar.gz: e59fd3af6ca1add6f7251dd40317f612785026d238fa273e149dfac9862c2536
3
+ metadata.gz: 4c062e8e2cf8d46ebb0087e9c85c16a211b36a8b9a8014db7a5826e1ac25f341
4
+ data.tar.gz: b739820427c420b476338b31d369a964fc3ff6797c890152a39d2b8cbcd80c44
5
5
  SHA512:
6
- metadata.gz: 2b6c1e2355bc77cdd7233b923f97a77ac9fe7134e401eed2cb61501c7a707b74428d343f6b9a374fb0fcd6572dcf2ab7c48b401d101e10ccb0b39ef33dfd8982
7
- data.tar.gz: 85a7fba4f6887fc8deb06f9d557e40025e3d6cb8de1c08b424c399afbc777fac4b9dfe6dfefc901bb9eae684c570f68c2c931dcb1661362d7bed54f691dc6490
6
+ metadata.gz: 58d4ac49153efb4a8a7e426672e39ba670da503b849e5c3f9c968958300e45168a2f8325a1b2cdf3c539602c5ccda17d8a53aaccac05c9a5d0cdf159014b39c5
7
+ data.tar.gz: 59308361c7935ff38979979c5907b17dce49ec4c898b7aa93611d9a6940a5df460596b01b0bf91c7eb8c456b029ffd1bf3b593c4f505a46127f648d197890be5
@@ -0,0 +1,6 @@
1
+ require 'sequencescape-api/resource'
2
+
3
+ class Sequencescape::ExtractionAttribute < ::Sequencescape::Api::Resource
4
+ belongs_to :plate, :class_name => 'Asset', :disposition => :inline
5
+ attribute_accessor :attributes_update, :created_by
6
+ end
@@ -68,4 +68,18 @@ class Sequencescape::Plate < ::Sequencescape::Asset
68
68
  raise Sequencescape::Api::Error, "Unexpected number of transfers found: #{creation_transfers.count} found, 1 expected."
69
69
  end
70
70
 
71
+
72
+ module UpdateExtractionAttributes
73
+ def create!(attributes = nil)
74
+ attributes ||= {}
75
+ new({}, false).tap do |attrs|
76
+ api.create(actions.create, {:extraction_attribute => attributes}, Sequencescape::Api::ModifyingHandler.new(attrs))
77
+ end
78
+ end
79
+ end
80
+
81
+ has_many :extraction_attributes, :class_name => 'ExtractionAttribute' do
82
+ include Sequencescape::Plate::UpdateExtractionAttributes
83
+ end
84
+
71
85
  end
@@ -7,5 +7,5 @@ class Sequencescape::TransferRequest < ::Sequencescape::Api::Resource
7
7
  belongs_to :submission, :class_name => 'Submission'
8
8
  belongs_to :outer_request, :class_name => 'Request'
9
9
 
10
- attribute_accessor :type, :state, :submission_id, :volume
10
+ attribute_accessor :type, :state, :submission_id, :volume, :merge_equivalent_aliquots
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Sequencescape
2
2
  class Api
3
- VERSION = "0.3.9"
3
+ VERSION = "0.3.10"
4
4
  end
5
5
  end
data/lib/sequencescape.rb CHANGED
@@ -74,6 +74,9 @@ require 'sequencescape/qcable_creator'
74
74
  require 'sequencescape/qc_decision'
75
75
  require 'sequencescape/plate_conversion'
76
76
 
77
+ # Support Extraction
78
+ require 'sequencescape/extraction_attribute'
79
+
77
80
  # Events
78
81
  require 'sequencescape/library_event'
79
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequencescape-client-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Denner
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-23 00:00:00.000000000 Z
13
+ date: 2020-04-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -374,6 +374,7 @@ files:
374
374
  - lib/sequencescape/bulk_transfer.rb
375
375
  - lib/sequencescape/comment.rb
376
376
  - lib/sequencescape/custom_metadatum_collection.rb
377
+ - lib/sequencescape/extraction_attribute.rb
377
378
  - lib/sequencescape/lane.rb
378
379
  - lib/sequencescape/library_event.rb
379
380
  - lib/sequencescape/library_tube.rb
@@ -489,8 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
489
490
  - !ruby/object:Gem::Version
490
491
  version: '0'
491
492
  requirements: []
492
- rubyforge_project: sequencescape-client-api
493
- rubygems_version: 2.7.7
493
+ rubygems_version: 3.0.3
494
494
  signing_key:
495
495
  specification_version: 4
496
496
  summary: Gem for the client side of the Sequencescape API