Sha256: 095bd859b93149a3558c27e28a298539ba416559d44eab3ecb6ac5a7b355a71a
Contents?: true
Size: 552 Bytes
Versions: 9
Compression:
Stored size: 552 Bytes
Contents
# frozen_string_literal: true require "active_support/configurable" module DocomoNlu def self.configure yield @config ||= DocomoNlu::Configuration.new end def self.config @config end class Configuration include ActiveSupport::Configurable config_accessor :nlu_host config_accessor :nlu_version config_accessor :admin_access_token end configure do |config| config.nlu_host = ENV["NLU_HOST"] config.nlu_version = ENV["NLU_VERSION"] config.admin_access_token = ENV["NLU_ADMIN_ACCESS_TOKEN"] end end
Version data entries
9 entries across 9 versions & 1 rubygems