Class: Google::Apis::ContentV2_1::PickupServicesPickupService

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

Returns a new instance of PickupServicesPickupService.



9047
9048
9049
# File 'lib/google/apis/content_v2_1/classes.rb', line 9047

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)


9035
9036
9037
# File 'lib/google/apis/content_v2_1/classes.rb', line 9035

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)


9040
9041
9042
# File 'lib/google/apis/content_v2_1/classes.rb', line 9040

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)


9045
9046
9047
# File 'lib/google/apis/content_v2_1/classes.rb', line 9045

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9052
9053
9054
9055
9056
# File 'lib/google/apis/content_v2_1/classes.rb', line 9052

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