Sha256: d16b649254851bd16f955ed1a490063e8f5ffee1c8fdeca90359f75aa48272d3
Contents?: true
Size: 391 Bytes
Versions: 24
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
24 entries across 24 versions & 1 rubygems