Class: Google::Apis::CivicinfoV2::Source
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CivicinfoV2::Source
 
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
 generated/google/apis/civicinfo_v2/representations.rb,
 generated/google/apis/civicinfo_v2/representations.rb
Overview
Contains information about the data source for the element containing it.
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the data source. 
- 
  
    
      #official  ⇒ Boolean 
    
    
      (also: #official?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this data comes from an official government source. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Source 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Source. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Source
Returns a new instance of Source
| 1337 1338 1339 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1337 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#name ⇒ String
The name of the data source.
Corresponds to the JSON property name
| 1329 1330 1331 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1329 def name @name end | 
#official ⇒ Boolean Also known as: official?
Whether this data comes from an official government source.
Corresponds to the JSON property official
| 1334 1335 1336 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1334 def official @official end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1342 1343 1344 1345 | # File 'generated/google/apis/civicinfo_v2/classes.rb', line 1342 def update!(**args) @name = args[:name] if args.key?(:name) @official = args[:official] if args.key?(:official) end |