Module: ReductoAI
- Defined in:
- lib/reducto_ai.rb,
lib/reducto_ai/client.rb,
lib/reducto_ai/config.rb,
lib/reducto_ai/engine.rb,
lib/reducto_ai/errors.rb,
lib/reducto_ai/version.rb,
lib/reducto_ai/resources/edit.rb,
lib/reducto_ai/resources/jobs.rb,
lib/reducto_ai/resources/parse.rb,
lib/reducto_ai/resources/split.rb,
lib/reducto_ai/resources/extract.rb,
lib/reducto_ai/resources/pipeline.rb
Overview
Main namespace for the ReductoAI gem.
Provides global configuration management for the Reducto API client. Use ReductoAI.configure to set API credentials and options, then create a Client instance to interact with the Reducto document intelligence API.
Defined Under Namespace
Modules: Resources Classes: AuthenticationError, Client, ClientError, Config, Engine, Error, NetworkError, ServerError
Constant Summary collapse
- VERSION =
Gem version
"0.1.1"
Class Method Summary collapse
-
.config ⇒ Config
Returns the global configuration instance.
-
.configure {|config| ... } ⇒ void
Configures the ReductoAI client globally.
-
.reset_configuration! ⇒ void
Resets the global configuration to nil.
Class Method Details
.config ⇒ Config
Returns the global configuration instance.
31 32 33 |
# File 'lib/reducto_ai.rb', line 31 def config @config ||= Config.new end |
.configure {|config| ... } ⇒ void
This method returns an undefined value.
Configures the ReductoAI client globally.
47 48 49 |
# File 'lib/reducto_ai.rb', line 47 def configure yield(config) end |
.reset_configuration! ⇒ void
This method returns an undefined value.
Resets the global configuration to nil.
Primarily used for testing to ensure a clean configuration state.
56 57 58 |
# File 'lib/reducto_ai.rb', line 56 def reset_configuration! @config = nil end |