Sha256: 4b1ff7cca880485012d1b95997f2b039f70f8dd7ad3cb1e352b2a59174141979
Contents?: true
Size: 391 Bytes
Versions: 22
Compression:
Stored size: 391 Bytes
Contents
require 'endpoint' class Config def initialize(config) @config = YAML.load_file(config) end def token @token ||= @config["token"] end def client_id @client_id ||= @config["client_id"] end def endpoints @endpoints ||= @config["endpoints"].map do |endpoint| Endpoint.new(endpoint) end end def emojis @emojis ||= @config["emojis"] end end
Version data entries
22 entries across 22 versions & 1 rubygems