Class: Google::Apis::ContentV2::PickupCarrierService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PickupCarrierService

Returns a new instance of PickupCarrierService.



7621
7622
7623
# File 'lib/google/apis/content_v2/classes.rb', line 7621

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)


7614
7615
7616
# File 'lib/google/apis/content_v2/classes.rb', line 7614

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)


7619
7620
7621
# File 'lib/google/apis/content_v2/classes.rb', line 7619

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7626
7627
7628
7629
# File 'lib/google/apis/content_v2/classes.rb', line 7626

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