Current section

Files

Jump to
riemannx lib riemannx proto helpers attribute.ex
Raw

lib/riemannx/proto/helpers/attribute.ex

defmodule Riemannx.Proto.Helpers.Attribute do
@moduledoc false
defmacro __using__(_opts) do
quote do
def build(attributes) do
Enum.map(attributes, fn {k, v} ->
new(key: to_string(k), value: to_string(v))
end)
end
end
end
end