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