Method: Codebot::Channel#set_network

Defined in:
lib/codebot/channel.rb

#set_network(network, conf) ⇒ Object

Sets the network for this channel.

Parameters:

  • network (String)

    the name of the network

  • conf (Hash)

    the configuration containing all networks



57
58
59
60
61
62
# File 'lib/codebot/channel.rb', line 57

def set_network(network, conf)
  @network = valid! network, valid_network(network, conf), :@network,
                    required: true,
                    required_error: 'channels must have a network',
                    invalid_error: 'invalid channel network %s'
end