Class: Twitchus::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/twitchus/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#streamsObject (readonly)

Returns the value of attribute streams.



6
7
8
# File 'lib/twitchus/config.rb', line 6

def streams
  @streams
end

Instance Method Details

#client_keyObject



25
26
27
# File 'lib/twitchus/config.rb', line 25

def client_key
  @data["client_key"]
end

#hostObject



13
14
15
# File 'lib/twitchus/config.rb', line 13

def host
  @data["host"]
end

#keyObject



21
22
23
# File 'lib/twitchus/config.rb', line 21

def key
  @data["key"]
end

#load(file) ⇒ Object



8
9
10
11
# File 'lib/twitchus/config.rb', line 8

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

#portObject



17
18
19
# File 'lib/twitchus/config.rb', line 17

def port
  @data["port"]
end