lib/active_shipping/shipping/package.rb in active_shipping-0.9.11 vs lib/active_shipping/shipping/package.rb in active_shipping-0.9.12

- old
+ new

@@ -30,15 +30,18 @@ end @value = Package.cents_from(options[:value]) @currency = options[:currency] || (options[:value].currency if options[:value].respond_to?(:currency)) @cylinder = (options[:cylinder] || options[:tube]) ? true : false + @gift = options[:gift] ? true : false end def cylinder? @cylinder end alias_method :tube?, :cylinder? + + def gift?; @gift end def ounces(options={}) weight(options).in_ounces.amount end alias_method :oz, :ounces \ No newline at end of file