Module: Nuntius
- Defined in:
- lib/core/errors.rb,
lib/nuntius.rb,
lib/core/client.rb,
lib/core/version.rb,
lib/utils/loader.rb,
lib/utils/logger.rb,
lib/utils/moderation.rb
Overview
frozen_string_literal: true
Defined Under Namespace
Modules: Utils Classes: APIError, AuthenticationError, Client, Error, InvalidRequestError, NetworkError, RateLimitError
Constant Summary collapse
- VERSION =
'1.0.0'
Class Method Summary collapse
-
.load_env(file_path = '.env') ⇒ Object
Load environment variables.
-
.new(api_key = nil, model: :flash) ⇒ Object
Convenience method to create a new client: default is Flash (3.7) for Free-Tier.
Class Method Details
.load_env(file_path = '.env') ⇒ Object
Load environment variables
20 21 22 |
# File 'lib/nuntius.rb', line 20 def self.load_env(file_path = '.env') Utils::Loader.load(file_path) end |
.new(api_key = nil, model: :flash) ⇒ Object
Convenience method to create a new client: default is Flash (3.7) for Free-Tier
15 16 17 |
# File 'lib/nuntius.rb', line 15 def self.new(api_key = nil, model: :flash) Client.new(api_key, model: model) end |