Dragonite.Parser.encode
You're seeing just the function
encode
, go back to Dragonite.Parser module for more information.
Specs
encode(%DragoniteEDI.Message{iea: term(), isa: term(), sts: term()}) :: {:ok, String.t()} | {:error, atom()}
Tries to encode a single EDI message from struct into string. Raises an argument error if message provided is not a valid message with the struct of EDI protocol.
Example
iex(1)> Dragonite.Parser.encode %DragoniteEDI.Message{}