GunsNPrices.ModelMatch (GunsNPrices v0.1.0)

Copy Markdown View Source

Result of GunsNPrices.identify_model/2.

  • brand - brand as named on GunsNPrices, e.g. "Glock"
  • family - model family, e.g. "Glock 19"
  • model - most specific model, e.g. "Glock 19 Gen 5 MOS"
  • generation - "5", "V", "V3" ... or "" when unknown
  • configs - configurations found, e.g. ["MOS"], ["Compact"]
  • features - features found, e.g. ["Threaded Barrel", "FDE"]
  • source - :title (named in the title) or :mpn (decoded from a Glock part number)

Summary

Types

t()

@type t() :: %GunsNPrices.ModelMatch{
  brand: String.t(),
  configs: [String.t()],
  family: String.t(),
  features: [String.t()],
  generation: String.t(),
  model: String.t(),
  source: :title | :mpn
}