Method: Codebot::Network#initialize

Defined in:
lib/codebot/network.rb

#initialize(params) ⇒ Network

Creates a new network from the supplied hash.

Parameters:

  • params (Hash)

    A hash with symbolic keys representing the instance attributes of this network. The keys :name and :host are required.



54
55
56
# File 'lib/codebot/network.rb', line 54

def initialize(params)
  update!(params)
end