Class: Google::Apis::ContentV2::PickupServicesPickupService

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

Returns a new instance of PickupServicesPickupService.



7651
7652
7653
# File 'lib/google/apis/content_v2/classes.rb', line 7651

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

Instance Attribute Details

#carrier_nameString

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

Returns:

  • (String)


7639
7640
7641
# File 'lib/google/apis/content_v2/classes.rb', line 7639

def carrier_name
  @carrier_name
end

#countryString

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

Returns:

  • (String)


7644
7645
7646
# File 'lib/google/apis/content_v2/classes.rb', line 7644

def country
  @country
end

#service_nameString

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

Returns:

  • (String)


7649
7650
7651
# File 'lib/google/apis/content_v2/classes.rb', line 7649

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7656
7657
7658
7659
7660
# File 'lib/google/apis/content_v2/classes.rb', line 7656

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