Method: Codebot::Network#update!

Defined in:
lib/codebot/network.rb

#update!(params) ⇒ Object

Updates the network from the supplied hash.

Parameters:

  • params (Hash)

    A hash with symbolic keys representing the instance attributes of this network.



62
63
64
65
66
67
68
69
# File 'lib/codebot/network.rb', line 62

def update!(params)
  self.name            = params[:name]
  self.server_password = params[:server_password]
  self.nick            = params[:nick]
  self.bind            = params[:bind]
  self.modes           = params[:modes]
  update_complicated!(params)
end