legato v0.2.0 Legato.Query.Dimension View Source

Link to this section Summary

Functions

Adds names to a list

Link to this section Functions

Adds names to a list

Examples

iex> Legato.Query.Dimension.add([], [:country]) [%Legato.Query.Dimension{name: “ga:country”}]

iex> Legato.Query.Dimension.add([], [:country, :city]) [%Legato.Query.Dimension{name: “ga:country”}, %Legato.Query.Dimension{name: “ga:city”}]

iex> Legato.Query.Dimension.add([], [:country, :country]) [%Legato.Query.Dimension{name: “ga:country”}]

iex> Legato.Query.Dimension.add([], [“ga:country”]) [%Legato.Query.Dimension{name: “ga:country”}]