Class: DHLGM::Response::ShipmentDetail
- Inherits:
-
Object
- Object
- DHLGM::Response::ShipmentDetail
- Defined in:
- lib/dhlgm-track/response/shipment_detail.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#city ⇒ Object
Returns the value of attribute city.
-
#customer_confirm ⇒ Object
Returns the value of attribute customer_confirm.
-
#delivery_confirm ⇒ Object
Returns the value of attribute delivery_confirm.
-
#shipped ⇒ Object
Returns the value of attribute shipped.
-
#state ⇒ Object
Returns the value of attribute state.
-
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
-
#weight ⇒ Object
Returns the value of attribute weight.
-
#zip ⇒ Object
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(init) ⇒ ShipmentDetail
constructor
A new instance of ShipmentDetail.
Constructor Details
#initialize(init) ⇒ ShipmentDetail
14 15 16 17 18 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 14 def initialize(init) init.each_pair do |key, val| instance_variable_set('@' + key.to_s, val) end end |
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def address2 @address2 end |
#city ⇒ Object
Returns the value of attribute city.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def city @city end |
#customer_confirm ⇒ Object
Returns the value of attribute customer_confirm.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def customer_confirm @customer_confirm end |
#delivery_confirm ⇒ Object
Returns the value of attribute delivery_confirm.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def delivery_confirm @delivery_confirm end |
#shipped ⇒ Object
Returns the value of attribute shipped.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def shipped @shipped end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def state @state end |
#tracking_number ⇒ Object
Returns the value of attribute tracking_number.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def tracking_number @tracking_number end |
#weight ⇒ Object
Returns the value of attribute weight.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def weight @weight end |
#zip ⇒ Object
Returns the value of attribute zip.
3 4 5 |
# File 'lib/dhlgm-track/response/shipment_detail.rb', line 3 def zip @zip end |