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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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) ⇒ PickupServicesPickupService

Returns a new instance of PickupServicesPickupService.



7732
7733
7734
# File 'generated/google/apis/content_v2/classes.rb', line 7732

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)


7720
7721
7722
# File 'generated/google/apis/content_v2/classes.rb', line 7720

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)


7725
7726
7727
# File 'generated/google/apis/content_v2/classes.rb', line 7725

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)


7730
7731
7732
# File 'generated/google/apis/content_v2/classes.rb', line 7730

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7737
7738
7739
7740
7741
# File 'generated/google/apis/content_v2/classes.rb', line 7737

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