darthdeus/twitchus

View on GitHub
lib/twitchus/config.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8
require "yaml"

module Twitchus
  class Config
    attr_reader :streams

    def load(file)
      @data = YAML.load_file(file)
      @streams = @data["streams"]
    end

    def host
      @data["host"]
    end

    def port
      @data["port"]
    end

    def key
      @data["key"]
    end

    def client_key
      @data["client_key"]
    end

  end
end