class Google::Apis::CivicinfoV2::Source
Contains information about the data source for the element containing it.
Attributes
name[RW]
The name of the data source. Corresponds to the JSON property `name` @return [String]
official[RW]
Whether this data comes from an official government source. Corresponds to the JSON property `official` @return [Boolean]
official?[RW]
Whether this data comes from an official government source. Corresponds to the JSON property `official` @return [Boolean]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/civicinfo_v2/classes.rb, line 1048 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/civicinfo_v2/classes.rb, line 1053 def update!(**args) @name = args[:name] if args.key?(:name) @official = args[:official] if args.key?(:official) end