Class: Retab::RunInputs
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::RunInputs
- 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
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#json_data ⇒ Object
Returns the value of attribute json_data.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RunInputs
constructor
A new instance of RunInputs.
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
#documents ⇒ Object
Returns the value of attribute documents.
13 14 15 |
# File 'lib/retab/workflow_runs/run_inputs.rb', line 13 def documents @documents end |
#json_data ⇒ Object
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 |