smart_city v3.13.0 SmartCity.Organization View Source

Struct defining an organization update event.

const Organization = {
  "description": "",
  "dn": "",          // LDAP distinguished name
  "homepage": "",
  "id": "",          // uuid
  "logoUrl": "",
  "orgName": "",     // system friendly
  "orgTitle": ""     // user friendly
}

Link to this section Summary

Functions

Returns a new SmartCity.Organization struct.

Link to this section Types

Link to this type

t()

View Source
t() :: %SmartCity.Organization{
  description: term(),
  dn: term(),
  homepage: term(),
  id: term(),
  logoUrl: term(),
  orgName: term(),
  orgTitle: term(),
  version: term()
}

Link to this section Functions

Link to this function

new(msg)

View Source
new(String.t() | map()) :: {:ok, map()} | {:error, term()}

Returns a new SmartCity.Organization struct.

Can be created from:

  • map with string keys
  • map with atom keys
  • JSON