Class: Google::Apis::ContentV2_1::CarriersCarrier
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CarriersCarrier
- 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
-
#country ⇒ String
The CLDR country code of the carrier (for example, "US").
-
#edd_services ⇒ Array<String>
A list of services supported for EDD (Estimated Delivery Date) calculation.
-
#name ⇒ String
The name of the carrier (for example,
"UPS"
). -
#services ⇒ Array<String>
A list of supported services (for example,
"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.
Constructor Details
#initialize(**args) ⇒ CarriersCarrier
Returns a new instance of CarriersCarrier.
2833 2834 2835 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2833 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR country code of the carrier (for example, "US"). Always present.
Corresponds to the JSON property country
2813 2814 2815 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2813 def country @country end |
#edd_services ⇒ Array<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
2819 2820 2821 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2819 def edd_services @edd_services end |
#name ⇒ String
The name of the carrier (for example, "UPS"
). Always present.
Corresponds to the JSON property name
2824 2825 2826 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2824 def name @name end |
#services ⇒ Array<String>
A list of supported services (for example, "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
2831 2832 2833 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2831 def services @services end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2838 2839 2840 2841 2842 2843 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2838 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 |