View Source SmartCity.Organization (smart_city v6.0.0)

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

@type id() :: term()
@type reason() :: term()
@type t() :: %SmartCity.Organization{
  dataJsonUrl: term(),
  description: term(),
  dn: term(),
  homepage: term(),
  id: term(),
  logoUrl: term(),
  orgName: term(),
  orgTitle: term(),
  version: term()
}

Link to this section Functions

@spec 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