Method: Codebot::Network#serialize

Defined in:
lib/codebot/network.rb

#serialize(_conf) ⇒ Array, Hash

Serializes this network.

Parameters:

  • _conf (Hash)

    the deserialized configuration

Returns:

  • (Array, Hash)

    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