Sha256: 446eceffaffff39282b0d8585d909d20b110e78b42a72bde536143cf564a2d0d
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# lib/tinybird/configuration.rb module Tinybird class Configuration attr_accessor :auth_token, :base_url def initialize @auth_token = ENV.fetch("TINYBIRD_AUTH_TOKEN", nil) @base_url = ENV.fetch("TINYBIRD_BASE_URL", "https://api.tinybird.co/v0") end end class << self attr_writer :configuration def configuration @configuration ||= Configuration.new end alias_method :config, :configuration def configure yield configuration end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tinybird-0.1.1 | lib/tinybird/configuration.rb |