Skip to content
Browse files

Added the new "rate" method to the UPS base.

  • Loading branch information...
1 parent 85a2e13 commit 0ec5fd152ea462597122276a4d51bfc4325930b8 @laserlemon laserlemon committed with Jun 2, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −0 lib/shippinglogic/ups.rb
  2. +0 −1 lib/shippinglogic/ups/rate.rb
View
4 lib/shippinglogic/ups.rb
@@ -51,5 +51,9 @@ def url
def track(attributes = {})
@track ||= Track.new(self, attributes)
end
+
+ def rate(attributes = {})
+ @rate ||= Rate.new(self, attributes)
+ end
end
end
View
1 lib/shippinglogic/ups/rate.rb
@@ -213,7 +213,6 @@ def build_request
end
def parse_response(response)
- puts response.inspect
return [] if !response[:rated_shipment]
response[:rated_shipment].collect do |details|

0 comments on commit 0ec5fd1

Please sign in to comment.
Something went wrong with that request. Please try again.