Sha256: 218d125e64ae0d69056576d1459a6920d9a8239f26502a33c89add61cae0bdf8
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
module ShipCompliant class Shipment < Struct.new(:shipment) def fulfillment_house shipment[:fulfillment_house] end def fulfillment_exception_reason shipment[:fulfillment_exception_reason] end def fulfillment_exception_type shipment[:fulfillment_exception_type] end def fulfillment_status shipment[:fulfillment_status] end def handling shipment[:handling].to_f end def insured_amount shipment[:insured_amount].to_f end def shipping shipment[:shipping].to_f end def ship_date shipment[:ship_date] end def shipment_status shipment[:shipment_status] end def shipping_service shipment[:shipping_service] end def special_instructions shipment[:special_instructions] end def packages Array.wrap(shipment[:packages]).map do |package| Package.new(package[:package]) end end def ship_to Address.new(shipment[:ship_to]) end end end
Version data entries
5 entries across 5 versions & 1 rubygems