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 generated/google/apis/civicinfo_v2/classes.rb, line 1027
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/civicinfo_v2/classes.rb, line 1032
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @official = args[:official] if args.key?(:official)
end