Sha256: 9ffceac2faa6c866ccc4a0baabb39053b1f251adacbd382edfc9c4abb5d4816a
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "shipping_scale" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) # require "pry" # Pry.start require "irb" IRB.start require "shipping_scale" # ShippingScale.config # ShippingScale::Request.config # package1_options = { weight: 1.5, length: 3, width: 2, height: 3, zip_origin: "66204", zip_destination: "63501" } # package2_options = { weight: 2.5, length: 1, width: 2, height: 5, zip_origin: "63501", zip_destination: "66204" } # package_1 = ShippingScale::Package.new(package1_options) # package_2 = ShippingScale::Package.new(package2_options) # packages = [package_1, package_2] # request = ShippingScale.new(packages: packages) # xml = request.build # puts xml
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shipping-scale-0.1.2 | bin/console |
shipping-scale-0.1.0 | bin/console |