Class: RRD::Response::ShipmentDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/rrd-track/response/shipment_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init) ⇒ ShipmentDetail

Returns a new instance of ShipmentDetail.



11
12
13
14
15
# File 'lib/rrd-track/response/shipment_detail.rb', line 11

def initialize(init)
  init.each_pair do |key, val|
    instance_variable_set('@' + key.to_s, val)
  end
end

Instance Attribute Details

#airway_billObject

Returns the value of attribute airway_bill.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def airway_bill
  @airway_bill
end

#is_courierObject

Returns the value of attribute is_courier.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def is_courier
  @is_courier
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def location
  @location
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def status
  @status
end

#tracking_numberObject

Returns the value of attribute tracking_number.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def tracking_number
  @tracking_number
end

#vendor_codeObject

Returns the value of attribute vendor_code.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def vendor_code
  @vendor_code
end

#vendor_nameObject

Returns the value of attribute vendor_name.



3
4
5
# File 'lib/rrd-track/response/shipment_detail.rb', line 3

def vendor_name
  @vendor_name
end