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

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) ⇒ PickupCarrierService

Returns a new instance of PickupCarrierService.



7533
7534
7535
# File 'lib/google/apis/content_v2_1/classes.rb', line 7533

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

Instance Attribute Details

#carrier_nameString

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

Returns:

  • (String)


7526
7527
7528
# File 'lib/google/apis/content_v2_1/classes.rb', line 7526

def carrier_name
  @carrier_name
end

#service_nameString

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

Returns:

  • (String)


7531
7532
7533
# File 'lib/google/apis/content_v2_1/classes.rb', line 7531

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7538
7539
7540
7541
# File 'lib/google/apis/content_v2_1/classes.rb', line 7538

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