Sha256: 88615907470163bc0a57ca38fc55245911eedb77493407c40f3f968f425c8a27

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

require "json"

module Tangany
  class Config
    attr_accessor :client_id, :client_secret, :environment, :chain, :subscription, :vault_url

    attr_reader :custody_base_url, :customers_base_url, :customers_version, :chains

    def initialize
      @custody_base_url = "https://api.tangany.com/v1"

      @customers_base_url = "https://api.tangany.com/customers"
      @customers_version = "1"

      @chains = load_chains
    end

    private

    def load_chains
      JSON.parse(File.read(File.join(__dir__, "../config/chains.json")))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tangany-0.0.4 lib/tangany/config.rb
tangany-0.0.3 lib/tangany/config.rb
tangany-0.0.2 lib/tangany/config.rb
tangany-0.0.1 lib/tangany/config.rb