Class: Google::Apis::ContentV2::CarriersCarrier
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::CarriersCarrier
 
- 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 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The CLDR country code of the carrier (e.g., "US"). 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the carrier (e.g., "UPS"). 
- 
  
    
      #services  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of supported services (e.g., "ground") for that carrier. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CarriersCarrier 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CarriersCarrier. 
- 
  
    
      #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) ⇒ CarriersCarrier
Returns a new instance of CarriersCarrier
| 1170 1171 1172 | # File 'generated/google/apis/content_v2/classes.rb', line 1170 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#country ⇒ String
The CLDR country code of the carrier (e.g., "US"). Always present.
Corresponds to the JSON property country
| 1157 1158 1159 | # File 'generated/google/apis/content_v2/classes.rb', line 1157 def country @country end | 
#name ⇒ String
The name of the carrier (e.g., "UPS"). Always present.
Corresponds to the JSON property name
| 1162 1163 1164 | # File 'generated/google/apis/content_v2/classes.rb', line 1162 def name @name end | 
#services ⇒ Array<String>
A list of supported services (e.g., "ground") for that carrier. Contains at
least one service.
Corresponds to the JSON property services
| 1168 1169 1170 | # File 'generated/google/apis/content_v2/classes.rb', line 1168 def services @services end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1175 1176 1177 1178 1179 | # File 'generated/google/apis/content_v2/classes.rb', line 1175 def update!(**args) @country = args[:country] if args.key?(:country) @name = args[:name] if args.key?(:name) @services = args[:services] if args.key?(:services) end |