Sha256: 71899280ca9753e4559f8dfe7411fdd00abaa5106ad33512789c03c210dedc00
Contents?: true
Size: 477 Bytes
Versions: 42
Compression:
Stored size: 477 Bytes
Contents
require 'endpoint' require 'dashboard' 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 dashboards @dashboards ||= @config['dashboards'] end def emojis @emojis ||= @config['emojis'] end end
Version data entries
42 entries across 42 versions & 1 rubygems