Sha256: f84493797770c39b3867628b1c2b212aeb5a23d4c6fea7370ae7efdb41e4b5e8
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
module Lolp module Configuration def config @config ||= Config.new end def configure yield config end class Config attr_accessor :api_endpoint, :username, :password def initialize @api_endpoint = ENV['LOLIPOP_MC_API_ENDPOINT'] || 'https://mc.lolipop.jp/api' @username = ENV['LOLIPOP_MC_USERNAME'] @password = ENV['LOLIPOP_MC_PASSWORD'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lolp-0.2.1 | lib/lolp/configuration.rb |
lolp-0.2.0 | lib/lolp/configuration.rb |