Class: Google4R::Checkout::TrackingData
- Inherits:
-
Object
- Object
- Google4R::Checkout::TrackingData
- Defined in:
- lib/google4r/checkout/shared.rb
Overview
TrackingData instances are used in Line-item shipping commands
Instance Attribute Summary collapse
-
#carrier ⇒ Object
readonly
The name of the company responsible for shipping the item.
-
#tracking_number ⇒ Object
readonly
The shipper’s tracking number that is associated with an order.
Instance Method Summary collapse
-
#initialize(carrier, tracking_number) ⇒ TrackingData
constructor
A new instance of TrackingData.
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
#carrier ⇒ Object (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_number ⇒ Object (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 |