Class: Google4R::Checkout::TrackingData

Inherits:
Object
  • Object
show all
Defined in:
lib/google4r/checkout/shared.rb

Overview

TrackingData instances are used in Line-item shipping commands

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(carrier, tracking_number) ⇒ TrackingData

Returns a new instance of TrackingData.



1263
1264
1265
1266
# File 'lib/google4r/checkout/shared.rb', line 1263

def initialize(carrier, tracking_number)
  @carrier = carrier.to_s
  @tracking_number = tracking_number.to_s
end

Instance Attribute Details

#carrierObject (readonly)

The name of the company responsible for shipping the item. Valid values for this tag are DHL, FedEx, UPS, USPS and Other.



1258
1259
1260
# File 'lib/google4r/checkout/shared.rb', line 1258

def carrier
  @carrier
end

#tracking_numberObject (readonly)

The shipper’s tracking number that is associated with an order



1261
1262
1263
# File 'lib/google4r/checkout/shared.rb', line 1261

def tracking_number
  @tracking_number
end