Class: Mindee::V1::WorkflowOptions
- Defined in:
- lib/mindee/v1/client.rb,
sig/mindee/v1/client.rbs
Overview
Class for configuration options in workflow executions.
without requiring authentication.
Instance Attribute Summary collapse
-
#close_file ⇒ Boolean
Returns the value of attribute close_file.
-
#document_alias ⇒ String?
Alias to give to the document.
-
#full_text ⇒ Boolean
Returns the value of attribute full_text.
-
#page_options ⇒ PageOptions
Returns the value of attribute page_options.
-
#priority ⇒ Symbol?
Returns the value of attribute priority.
-
#public_url ⇒ String?
A unique, encrypted URL for accessing the document validation interface.
-
#rag ⇒ Boolean?
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.
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mindee/v1/client.rb', line 76 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) = @close_file = params.fetch(:close_file, true) end |
Instance Attribute Details
#close_file ⇒ Boolean
Returns the value of attribute close_file.
74 75 76 |
# File 'lib/mindee/v1/client.rb', line 74 def close_file @close_file end |
#document_alias ⇒ String?
Alias to give to the document.
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/mindee/v1/client.rb', line 73 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) = @close_file = params.fetch(:close_file, true) end end |
#full_text ⇒ Boolean
Returns the value of attribute full_text.
74 75 76 |
# File 'lib/mindee/v1/client.rb', line 74 def full_text @full_text end |
#page_options ⇒ PageOptions
Returns the value of attribute page_options.
74 75 76 |
# File 'lib/mindee/v1/client.rb', line 74 def end |
#priority ⇒ Symbol?
Returns the value of attribute priority.
74 75 76 |
# File 'lib/mindee/v1/client.rb', line 74 def priority @priority end |
#public_url ⇒ String?
A unique, encrypted URL for accessing the document validation interface
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/mindee/v1/client.rb', line 73 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) = @close_file = params.fetch(:close_file, true) end end |
#rag ⇒ Boolean?
Returns the value of attribute rag.
74 75 76 |
# File 'lib/mindee/v1/client.rb', line 74 def rag @rag end |