Class: Retab::UpdateExperimentRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::UpdateExperimentRequest
- Defined in:
- lib/retab/workflow_experiments/update_experiment_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ document_captures: :document_captures, documents: :documents, n_consensus: :n_consensus, name: :name }.freeze
Instance Attribute Summary collapse
-
#document_captures ⇒ Object
Returns the value of attribute document_captures.
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#n_consensus ⇒ Object
Returns the value of attribute n_consensus.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateExperimentRequest
constructor
A new instance of UpdateExperimentRequest.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ UpdateExperimentRequest
Returns a new instance of UpdateExperimentRequest.
21 22 23 24 25 26 27 |
# File 'lib/retab/workflow_experiments/update_experiment_request.rb', line 21 def initialize(json) hash = self.class.normalize(json) @document_captures = (hash[:document_captures] || []).map { |item| item ? Retab::ExperimentDocumentCaptureRequest.new(item) : nil } @documents = (hash[:documents] || []).map { |item| item ? Retab::ExplicitExperimentDocumentRequest.new(item) : nil } @n_consensus = hash[:n_consensus] @name = hash[:name] end |
Instance Attribute Details
#document_captures ⇒ Object
Returns the value of attribute document_captures.
15 16 17 |
# File 'lib/retab/workflow_experiments/update_experiment_request.rb', line 15 def document_captures @document_captures end |
#documents ⇒ Object
Returns the value of attribute documents.
15 16 17 |
# File 'lib/retab/workflow_experiments/update_experiment_request.rb', line 15 def documents @documents end |
#n_consensus ⇒ Object
Returns the value of attribute n_consensus.
15 16 17 |
# File 'lib/retab/workflow_experiments/update_experiment_request.rb', line 15 def n_consensus @n_consensus end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/retab/workflow_experiments/update_experiment_request.rb', line 15 def name @name end |