Class: RRD::Response::ShipmentDetail
- Inherits:
-
Object
- Object
- RRD::Response::ShipmentDetail
- Defined in:
- lib/rrd-track/response/shipment_detail.rb
Instance Attribute Summary collapse
-
#airway_bill ⇒ Object
Returns the value of attribute airway_bill.
-
#is_courier ⇒ Object
Returns the value of attribute is_courier.
-
#location ⇒ Object
Returns the value of attribute location.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
-
#vendor_code ⇒ Object
Returns the value of attribute vendor_code.
-
#vendor_name ⇒ Object
Returns the value of attribute vendor_name.
Instance Method Summary collapse
-
#initialize(init) ⇒ ShipmentDetail
constructor
A new instance of ShipmentDetail.
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_bill ⇒ Object
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_courier ⇒ Object
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 |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/rrd-track/response/shipment_detail.rb', line 3 def location @location end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/rrd-track/response/shipment_detail.rb', line 3 def status @status end |
#tracking_number ⇒ Object
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_code ⇒ Object
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_name ⇒ Object
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 |