Class: Mindee::WorkflowOptions
- Inherits:
-
Object
- Object
- Mindee::WorkflowOptions
- Defined in:
- lib/mindee/client.rb
Overview
Class for configuration options in workflow executions.
Instance Attribute Summary collapse
-
#close_file ⇒ Object
Returns the value of attribute close_file.
-
#document_alias ⇒ Object
Alias to give to the document.
-
#full_text ⇒ Object
Returns the value of attribute full_text.
-
#page_options ⇒ Object
Returns the value of attribute page_options.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#public_url ⇒ Object
A unique, encrypted URL for accessing the document validation interface without requiring authentication.
-
#rag ⇒ Object
Returns the value of attribute rag.
Instance Method Summary collapse
-
#initialize(params: {}) ⇒ WorkflowOptions
constructor
A new instance of WorkflowOptions.
Constructor Details
#initialize(params: {}) ⇒ WorkflowOptions
Returns a new instance of WorkflowOptions.
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/mindee/client.rb', line 75 def initialize(params: {}) params = params.transform_keys(&:to_sym) @document_alias = params.fetch(:document_alias, nil) @priority = params.fetch(:priority, nil) @full_text = params.fetch(:full_text, false) @public_url = params.fetch(:public_url, nil) @rag = params.fetch(:rag, nil) = params.fetch(:page_options, nil) = PageOptions.new(params: ) unless .is_a?(PageOptions) @page_options = @close_file = params.fetch(:close_file, true) end |
Instance Attribute Details
#close_file ⇒ Object
Returns the value of attribute close_file.
73 74 75 |
# File 'lib/mindee/client.rb', line 73 def close_file @close_file end |
#document_alias ⇒ Object
Alias to give to the document.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mindee/client.rb', line 72 class WorkflowOptions attr_accessor :document_alias, :priority, :full_text, :public_url, :page_options, :rag, :close_file def initialize(params: {}) params = params.transform_keys(&:to_sym) @document_alias = params.fetch(:document_alias, nil) @priority = params.fetch(:priority, nil) @full_text = params.fetch(:full_text, false) @public_url = params.fetch(:public_url, nil) @rag = params.fetch(:rag, nil) = params.fetch(:page_options, nil) = PageOptions.new(params: ) unless .is_a?(PageOptions) @page_options = @close_file = params.fetch(:close_file, true) end end |
#full_text ⇒ Object
Returns the value of attribute full_text.
73 74 75 |
# File 'lib/mindee/client.rb', line 73 def full_text @full_text end |
#page_options ⇒ Object
Returns the value of attribute page_options.
73 74 75 |
# File 'lib/mindee/client.rb', line 73 def @page_options end |
#priority ⇒ Object
Returns the value of attribute priority.
73 74 75 |
# File 'lib/mindee/client.rb', line 73 def priority @priority end |
#public_url ⇒ Object
A unique, encrypted URL for accessing the document validation interface without requiring authentication.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mindee/client.rb', line 72 class WorkflowOptions attr_accessor :document_alias, :priority, :full_text, :public_url, :page_options, :rag, :close_file def initialize(params: {}) params = params.transform_keys(&:to_sym) @document_alias = params.fetch(:document_alias, nil) @priority = params.fetch(:priority, nil) @full_text = params.fetch(:full_text, false) @public_url = params.fetch(:public_url, nil) @rag = params.fetch(:rag, nil) = params.fetch(:page_options, nil) = PageOptions.new(params: ) unless .is_a?(PageOptions) @page_options = @close_file = params.fetch(:close_file, true) end end |
#rag ⇒ Object
Returns the value of attribute rag.
73 74 75 |
# File 'lib/mindee/client.rb', line 73 def rag @rag end |