Class: Retab::ExplicitExperimentDocumentRequest

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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_inputsObject

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

#provenanceObject

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