Class: Workarea::GlobalE::TrackingDetails
- Inherits:
-
Object
- Object
- Workarea::GlobalE::TrackingDetails
- Defined in:
- app/services/workarea/global_e/tracking_details.rb
Instance Attribute Summary collapse
-
#tracking_number ⇒ String
readonly
The tracking number as the shipper has specified.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(tracking_number:) ⇒ TrackingDetails
constructor
A new instance of TrackingDetails.
Constructor Details
#initialize(tracking_number:) ⇒ TrackingDetails
Returns a new instance of TrackingDetails.
6 7 8 |
# File 'app/services/workarea/global_e/tracking_details.rb', line 6 def initialize(tracking_number:) @tracking_number = tracking_number end |
Instance Attribute Details
#tracking_number ⇒ String (readonly)
The tracking number as the shipper has specified.
18 19 20 |
# File 'app/services/workarea/global_e/tracking_details.rb', line 18 def tracking_number @tracking_number end |
Instance Method Details
#as_json ⇒ Object
10 11 12 |
# File 'app/services/workarea/global_e/tracking_details.rb', line 10 def as_json(*) { TrackingNumber: tracking_number } end |