Class: Retab::ExplicitExperimentDocumentRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExplicitExperimentDocumentRequest
- Defined in:
- lib/retab/workflow_experiments/explicit_experiment_document_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ handle_inputs: :handle_inputs, provenance: :provenance }.freeze
Instance Attribute Summary collapse
-
#handle_inputs ⇒ Object
Returns the value of attribute handle_inputs.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExplicitExperimentDocumentRequest
constructor
A new instance of ExplicitExperimentDocumentRequest.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExplicitExperimentDocumentRequest
Returns a new instance of ExplicitExperimentDocumentRequest.
17 18 19 20 21 |
# File 'lib/retab/workflow_experiments/explicit_experiment_document_request.rb', line 17 def initialize(json) hash = self.class.normalize(json) @handle_inputs = hash[:handle_inputs] || {} @provenance = hash[:provenance] ? Retab::ExperimentDocumentProvenance.new(hash[:provenance]) : nil end |
Instance Attribute Details
#handle_inputs ⇒ Object
Returns the value of attribute handle_inputs.
13 14 15 |
# File 'lib/retab/workflow_experiments/explicit_experiment_document_request.rb', line 13 def handle_inputs @handle_inputs end |
#provenance ⇒ Object
Returns the value of attribute provenance.
13 14 15 |
# File 'lib/retab/workflow_experiments/explicit_experiment_document_request.rb', line 13 def provenance @provenance end |