Class: Retab::RunInputs

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_runs/run_inputs.rb

Constant Summary collapse

HASH_ATTRS =
{
  documents: :documents,
  json_data: :json_data
}.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) ⇒ RunInputs

Returns a new instance of RunInputs.



17
18
19
20
21
# File 'lib/retab/workflow_runs/run_inputs.rb', line 17

def initialize(json)
  hash = self.class.normalize(json)
  @documents = hash[:documents] || {}
  @json_data = hash[:json_data] || {}
end

Instance Attribute Details

#documentsObject

Returns the value of attribute documents.



13
14
15
# File 'lib/retab/workflow_runs/run_inputs.rb', line 13

def documents
  @documents
end

#json_dataObject

Returns the value of attribute json_data.



13
14
15
# File 'lib/retab/workflow_runs/run_inputs.rb', line 13

def json_data
  @json_data
end