Class: Google::Apis::ContentV2::ShipmentTrackingInfo

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

Returns a new instance of ShipmentTrackingInfo



10125
10126
10127
# File 'generated/google/apis/content_v2/classes.rb', line 10125

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

Instance Attribute Details

#carrierString

Corresponds to the JSON property carrier

Returns:

  • (String)


10118
10119
10120
# File 'generated/google/apis/content_v2/classes.rb', line 10118

def carrier
  @carrier
end

#tracking_numberString

Corresponds to the JSON property trackingNumber

Returns:

  • (String)


10123
10124
10125
# File 'generated/google/apis/content_v2/classes.rb', line 10123

def tracking_number
  @tracking_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10130
10131
10132
10133
# File 'generated/google/apis/content_v2/classes.rb', line 10130

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