Class: Google::Apis::ContentV2::AccountAddress
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::AccountAddress
 
 
- Defined in:
 - generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #country  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
CLDR country code (e.g. "US").
 - 
  
    
      #locality  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
City, town or commune.
 - 
  
    
      #postal_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Postal code or ZIP (e.g. "94043").
 - 
  
    
      #region  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Top-level administrative subdivision of the country.
 - 
  
    
      #street_address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Street-level part of the address.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AccountAddress 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AccountAddress.
 - 
  
    
      #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) ⇒ AccountAddress
Returns a new instance of AccountAddress
      153 154 155  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 153 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#country ⇒ String
CLDR country code (e.g. "US").
Corresponds to the JSON property country
      129 130 131  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 129 def country @country end  | 
  
#locality ⇒ String
City, town or commune. May also include dependent localities or sublocalities (
e.g. neighborhoods or suburbs).
Corresponds to the JSON property locality
      135 136 137  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 135 def locality @locality end  | 
  
#postal_code ⇒ String
Postal code or ZIP (e.g. "94043").
Corresponds to the JSON property postalCode
      140 141 142  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 140 def postal_code @postal_code end  | 
  
#region ⇒ String
Top-level administrative subdivision of the country. For example, a state like
California ("CA") or a province like Quebec ("QC").
Corresponds to the JSON property region
      146 147 148  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 146 def region @region end  | 
  
#street_address ⇒ String
Street-level part of the address.
Corresponds to the JSON property streetAddress
      151 152 153  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 151 def street_address @street_address end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      158 159 160 161 162 163 164  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 158 def update!(**args) @country = args[:country] if args.key?(:country) @locality = args[:locality] if args.key?(:locality) @postal_code = args[:postal_code] if args.key?(:postal_code) @region = args[:region] if args.key?(:region) @street_address = args[:street_address] if args.key?(:street_address) end  |