Class: Google::Apis::ContentV2_1::ShipmentTrackingInfo

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

Returns a new instance of ShipmentTrackingInfo



8220
8221
8222
# File 'generated/google/apis/content_v2_1/classes.rb', line 8220

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

Instance Attribute Details

#carrierString

Corresponds to the JSON property carrier

Returns:

  • (String)


8213
8214
8215
# File 'generated/google/apis/content_v2_1/classes.rb', line 8213

def carrier
  @carrier
end

#tracking_numberString

Corresponds to the JSON property trackingNumber

Returns:

  • (String)


8218
8219
8220
# File 'generated/google/apis/content_v2_1/classes.rb', line 8218

def tracking_number
  @tracking_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8225
8226
8227
8228
# File 'generated/google/apis/content_v2_1/classes.rb', line 8225

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