Class: Rafflesia::HomologyQueryContextMeasurements
- Inherits:
-
Object
- Object
- Rafflesia::HomologyQueryContextMeasurements
- Defined in:
- lib/rafflesia/homology_query_context_measurements.rb
Instance Method Summary collapse
-
#create(probe:, query:, selections:, request_options: {}) ⇒ Rafflesia::EnvelopeHomologyQueryContextMeasurementSet
POST /v1/homology_query_context_measurements.
-
#initialize(client) ⇒ HomologyQueryContextMeasurements
constructor
A new instance of HomologyQueryContextMeasurements.
Constructor Details
#initialize(client) ⇒ HomologyQueryContextMeasurements
Returns a new instance of HomologyQueryContextMeasurements.
9 10 11 |
# File 'lib/rafflesia/homology_query_context_measurements.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#create(probe:, query:, selections:, request_options: {}) ⇒ Rafflesia::EnvelopeHomologyQueryContextMeasurementSet
POST /v1/homology_query_context_measurements
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/homology_query_context_measurements.rb', line 19 def create( probe:, query:, selections:, request_options: {} ) body = { 'probe' => probe, 'query' => query, 'selections' => selections } response = @client.request( method: :post, path: '/v1/homology_query_context_measurements', auth: true, body: body, request_options: ) result = Rafflesia::EnvelopeHomologyQueryContextMeasurementSet.new(response.body) result.last_response = Rafflesia::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"]) result end |