Class: Wisper::Configuration::Broadcasters

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/wisper/configuration.rb

Instance Method Summary collapse

Constructor Details

#initializeBroadcasters

Returns a new instance of Broadcasters.


34
35
36
# File 'lib/wisper/configuration.rb', line 34

def initialize
  @data = {}
end

Instance Method Details

#fetch(key) ⇒ Object

Raises:

  • (KeyError)

38
39
40
41
# File 'lib/wisper/configuration.rb', line 38

def fetch(key)
  raise KeyError, "broadcaster not found for #{key}" unless include?(key)
  @data[key]
end