Weebo.Formattable protocol

Protocol that handles trasforming Elixir values into their XML-RPC representations.

Source

Summary

format(any)

Returns a tuple-representation of XML that represents the value passed in

Types

t :: term

Functions

format(any)

Specs:

Returns a tuple-representation of XML that represents the value passed in.

Example

defimpl Weebo.Formattable, for: Integer do
  def format(int) do
    {:int, [Integer.to_string(int)]}
  end
end
Source