Serializes this network.
Parameters:
the deserialized configuration
Returns:
the serialized object
216 217 218
# File 'lib/codebot/network.rb', line 216 def serialize(_conf) [name, Network.fields.map { |sym| [sym.to_s, send(sym)] }.to_h] end