Sha256: 97b2a87ea55080eaaae0138d3b7cadf660f85da98a0067b7780cfcb9292838c4
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
module Relaton module Config def configure if block_given? yield configuration end end def configuration @configuration ||= Configuration.new end end class Configuration attr_accessor :logs, :use_api, :api_host def initialize @logs = %i(info error) # allowed values: :info, :warning, :error, :debug # @TODO change to true when we start using api.relaton.org @use_api = true @api_host = "https://api.relaton.org/api/v1" end end extend Config end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relaton-1.8.pre4 | lib/relaton/config.rb |