LivePhone.Countries.get_country
You're seeing just the function
get_country
, go back to LivePhone.Countries module for more information.
Specs
get_country(String.t()) :: {:ok, LivePhone.Country.t()} | {:error, :not_found}
This function will lookup a Country
by it's country code.
Examples:
iex> LivePhone.Countries.get_country("US")
{:ok, %LivePhone.Country{code: "US", flag_emoji: "πΊπΈ", name: "United States of America (the)", preferred: false, region_code: "1"}}
iex> LivePhone.Countries.get_country("FAKE")
{:error, :not_found}