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
-
#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.
93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/mindee/client.rb', line 93 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 = end |
Instance Attribute Details
#document_alias ⇒ Object
Alias to give to the document.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/mindee/client.rb', line 90 class WorkflowOptions attr_accessor :document_alias, :priority, :full_text, :public_url, :page_options, :rag 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 = end end |
#full_text ⇒ Object
Returns the value of attribute full_text.
91 92 93 |
# File 'lib/mindee/client.rb', line 91 def full_text @full_text end |
#page_options ⇒ Object
Returns the value of attribute page_options.
91 92 93 |
# File 'lib/mindee/client.rb', line 91 def @page_options end |
#priority ⇒ Object
Returns the value of attribute priority.
91 92 93 |
# File 'lib/mindee/client.rb', line 91 def priority @priority end |
#public_url ⇒ Object
A unique, encrypted URL for accessing the document validation interface without requiring authentication.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/mindee/client.rb', line 90 class WorkflowOptions attr_accessor :document_alias, :priority, :full_text, :public_url, :page_options, :rag 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 = end end |
#rag ⇒ Object
Returns the value of attribute rag.
91 92 93 |
# File 'lib/mindee/client.rb', line 91 def rag @rag end |