Sha256: 8693c3c19de85cf1cbc5852cd9ae03bd16972cce6013a0f703f1530202d4e4c0

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

# 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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
twitchus-0.1.8 lib/twitchus/config.rb
twitchus-0.1.7 lib/twitchus/config.rb
twitchus-0.1.6 lib/twitchus/config.rb
twitchus-0.1.5 lib/twitchus/config.rb
twitchus-0.1.4 lib/twitchus/config.rb
twitchus-0.1.3 lib/twitchus/config.rb
twitchus-0.1.2 lib/twitchus/config.rb