Class: Workarea::GlobalE::TrackingDetails

Inherits:
Object
  • Object
show all
Defined in:
app/services/workarea/global_e/tracking_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberString (readonly)

The tracking number as the shipper has specified.

Returns:

  • (String)


18
19
20
# File 'app/services/workarea/global_e/tracking_details.rb', line 18

def tracking_number
  @tracking_number
end

Instance Method Details

#as_jsonObject



10
11
12
# File 'app/services/workarea/global_e/tracking_details.rb', line 10

def as_json(*)
  { TrackingNumber: tracking_number }
end