Class: Google::Apis::ContentV2_1::PickupCarrierService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PickupCarrierService

Returns a new instance of PickupCarrierService.



6254
6255
6256
# File 'generated/google/apis/content_v2_1/classes.rb', line 6254

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

Instance Attribute Details

#carrier_nameString

The name of the pickup carrier (e.g., "UPS"). Required. Corresponds to the JSON property carrierName

Returns:

  • (String)


6247
6248
6249
# File 'generated/google/apis/content_v2_1/classes.rb', line 6247

def carrier_name
  @carrier_name
end

#service_nameString

The name of the pickup service (e.g., "Access point"). Required. Corresponds to the JSON property serviceName

Returns:

  • (String)


6252
6253
6254
# File 'generated/google/apis/content_v2_1/classes.rb', line 6252

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6259
6260
6261
6262
# File 'generated/google/apis/content_v2_1/classes.rb', line 6259

def update!(**args)
  @carrier_name = args[:carrier_name] if args.key?(:carrier_name)
  @service_name = args[:service_name] if args.key?(:service_name)
end