def update!(params)
      set_identifier params[:identifier], params[:config] if params[:identifier]
      self.name          = params[:name]
      self.key           = params[:key]
      self.send_external = params[:send_external]
      set_network params[:network], params[:config]
    end
def update!(params)
      set_identifier params[:identifier], params[:config] if params[:identifier]
      self.name          = params[:name]
      self.key           = params[:key]
      self.send_external = params[:send_external]
      set_network params[:network], params[:config]
    end
Creates a new channel from the supplied hash.

 @param params [Hash] A hash with symbolic keys representing the instance
                      attributes of this channel. The keys +:name+ and
                      +:network+ are required. Alternatively, the key
                      +:identifier+, which should use the format
                      +network/name+, can be specified.
 Updates the channel from the supplied hash.

 @param params [Hash] A hash with symbolic keys representing the instance
                      attributes of this channel.