Sha256: 35dd56e17681f302010acc32e5b24cfaee66da666a7018ca34e918609e8cb819

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

module Orias
  # Dedicated to configuration management
  #
  class Configuration < Base
    DEFAULT_API_ENDPOINT = 'https://ws.orias.fr/service?wsdl'.freeze
    DEFAULT_PER_REQUEST = 1000.freeze

    attr_accessor :private_key, :api_endpoint, :per_request

    # Initialize an Orias::Configuration instance
    def initialize(attributes = {})
      super
      @api_endpoint ||= DEFAULT_API_ENDPOINT
      @per_request ||= DEFAULT_PER_REQUEST
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
orias-0.4.1 lib/orias/configuration.rb
orias-0.4 lib/orias/configuration.rb
orias-0.3.0 lib/orias/configuration.rb