Brasilapi.Fipe.Price (BrasilAPI v1.0.1)

View Source

Struct representing vehicle price information from the FIPE table.

Summary

Functions

Creates a Price struct from a map. Supports both string and atom keys.

Types

t()

@type t() :: %Brasilapi.Fipe.Price{
  ano_modelo: integer(),
  codigo_fipe: String.t(),
  combustivel: String.t(),
  data_consulta: String.t(),
  marca: String.t(),
  mes_referencia: String.t(),
  modelo: String.t(),
  sigla_combustivel: String.t(),
  tipo_veiculo: integer(),
  valor: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a Price struct from a map. Supports both string and atom keys.