Module: Fluence::Gateway

Extended by:
Configuration
Defined in:
lib/fluence/gateway/client.rb,
lib/fluence/gateway/errors.rb,
lib/fluence/gateway/http_client.rb,
lib/fluence/gateway/configuration.rb,
lib/fluence/gateway/client/version.rb

Overview

Namespace of the Fluence API gateway client.

This module exposes both the SDK configuration API (config, configure) inherited from Configuration and the HTTP Client. It is the only entry point applications should reference.

Examples:

Configure the SDK and call a service

Fluence::Gateway.configure do |c|
  c.client_id     = ENV.fetch('GATEWAY_CLIENT_ID')
  c.client_secret = ENV.fetch('GATEWAY_CLIENT_SECRET')
end

Fluence::Gateway::Client.get('/base-valeur/api/v1/valuations')

See Also:

Defined Under Namespace

Modules: Configuration Classes: AuthenticationError, Client, ConnectionError, Error

Constant Summary collapse

VERSION =

Semantic version of the fluence-gateway-client gem.

Updated by .github/scripts/bump-version.sh as part of the release workflow — do not edit by hand.

'0.3.0'

Method Summary

Methods included from Configuration

config, configure