Class: Twitchus::Config
- Inherits:
-
Object
- Object
- Twitchus::Config
- Defined in:
- lib/twitchus/config.rb
Instance Attribute Summary collapse
-
#streams ⇒ Object
readonly
Returns the value of attribute streams.
Instance Method Summary collapse
Instance Attribute Details
#streams ⇒ Object (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_key ⇒ Object
25 26 27 |
# File 'lib/twitchus/config.rb', line 25 def client_key @data["client_key"] end |
#host ⇒ Object
13 14 15 |
# File 'lib/twitchus/config.rb', line 13 def host @data["host"] end |
#key ⇒ Object
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 |
#port ⇒ Object
17 18 19 |
# File 'lib/twitchus/config.rb', line 17 def port @data["port"] end |