smart_city v3.13.0 SmartCity.Dataset.Business View Source

A struct representing the business data portion of a dataset struct definition (represented by SmartCity.Dataset)

You probably won't need to access this module directly; SmartCity.Dataset.new/1 will build this for you

Link to this section Summary

Link to this section Types

Link to this type

license_or_default()

View Source
license_or_default() :: String.t()
Link to this type

not_required()

View Source
not_required() :: term() | nil
Link to this type

t()

View Source
t() :: %SmartCity.Dataset.Business{
  authorEmail: not_required(),
  authorName: not_required(),
  benefitRating: not_required(),
  categories: not_required(),
  conformsToUri: not_required(),
  contactEmail: String.t(),
  contactName: String.t(),
  dataTitle: String.t(),
  describedByMimeType: not_required(),
  describedByUrl: not_required(),
  description: String.t(),
  homepage: not_required(),
  issuedDate: not_required(),
  keywords: not_required(),
  language: not_required(),
  license: license_or_default(),
  modifiedDate: String.t(),
  orgTitle: String.t(),
  parentDataset: not_required(),
  publishFrequency: not_required(),
  referenceUrls: not_required(),
  rights: not_required(),
  riskRating: not_required(),
  spatial: not_required(),
  temporal: not_required()
}

Link to this section Functions

Link to this function

get(struct, key, default \\ nil)

View Source

Returns a new SmartCity.Dataset.Business struct. Can be created from Map with string or atom keys.

Parameters