Sha256: 6f2bdfe76fd80b060d352423dee3850b9d78b210bd87bca932aa1d6ee99b9380
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module MISP class Configuration # @return [URI] attr_accessor :api_endpoint # @return [String] attr_accessor :api_key def initialize @api_endpoint = ENV["MISP_API_ENDPOINT"] @api_key = ENV["MISP_API_KEY"] end end class << self def configuration @configuration ||= Configuration.new end attr_writer :configuration def configure yield configuration end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
misp-0.1.4 | lib/misp/configuration.rb |
misp-0.1.3 | lib/misp/configuration.rb |
misp-0.1.2 | lib/misp/configuration.rb |
misp-0.1.1 | lib/misp/configuration.rb |