GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Office (google_api_civic_info v0.26.0)
View SourceInformation about an Office held by one or more Officials.
Attributes
-
divisionId
(type:String.t
, default:nil
) - The OCD ID of the division with which this office is associated. -
levels
(type:list(String.t)
, default:nil
) - The levels of government of which this office is part. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1". -
name
(type:String.t
, default:nil
) - The human-readable name of the office. -
officialIndices
(type:list(integer())
, default:nil
) - List of indices in the officials array of people who presently hold this office. -
roles
(type:list(String.t)
, default:nil
) - The roles which this office fulfills. Roles are not meant to be exhaustive, or to exactly specify the entire set of responsibilities of a given office, but are meant to be rough categories that are useful for general selection from or sorting of a list of offices. -
sources
(type:list(GoogleApi.CivicInfo.V2.Model.CivicinfoSchemaV2Source.t)
, default:nil
) - A list of sources for this office. If multiple sources are listed, the data has been aggregated from those sources.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.