Class: Google::Apis::ContentV2_1::CarriersCarrier

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CarriersCarrier

Returns a new instance of CarriersCarrier.



1935
1936
1937
# File 'lib/google/apis/content_v2_1/classes.rb', line 1935

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countryString

The CLDR country code of the carrier (e.g., "US"). Always present. Corresponds to the JSON property country

Returns:

  • (String)


1915
1916
1917
# File 'lib/google/apis/content_v2_1/classes.rb', line 1915

def country
  @country
end

#edd_servicesArray<String>

A list of services supported for EDD (Estimated Delivery Date) calculation. This is the list of valid values for WarehouseBasedDeliveryTime.carrierService. Corresponds to the JSON property eddServices

Returns:

  • (Array<String>)


1921
1922
1923
# File 'lib/google/apis/content_v2_1/classes.rb', line 1921

def edd_services
  @edd_services
end

#nameString

The name of the carrier (e.g., "UPS"). Always present. Corresponds to the JSON property name

Returns:

  • (String)


1926
1927
1928
# File 'lib/google/apis/content_v2_1/classes.rb', line 1926

def name
  @name
end

#servicesArray<String>

A list of supported services (e.g., "ground") for that carrier. Contains at least one service. This is the list of valid values for CarrierRate. carrierService. Corresponds to the JSON property services

Returns:

  • (Array<String>)


1933
1934
1935
# File 'lib/google/apis/content_v2_1/classes.rb', line 1933

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1940
1941
1942
1943
1944
1945
# File 'lib/google/apis/content_v2_1/classes.rb', line 1940

def update!(**args)
  @country = args[:country] if args.key?(:country)
  @edd_services = args[:edd_services] if args.key?(:edd_services)
  @name = args[:name] if args.key?(:name)
  @services = args[:services] if args.key?(:services)
end