lib/active_shipping/carrier.rb in active_shipping-1.14.2 vs lib/active_shipping/carrier.rb in active_shipping-2.0.0
- old
+ new
@@ -16,12 +16,10 @@
#
# @!attribute last_request
# The last request performed against the carrier's API.
# @see #save_request
class Carrier
- include Quantified
-
attr_reader :last_request
attr_accessor :test_mode
alias_method :test_mode?, :test_mode
# Credentials should be in options hash under keys :login, :password and/or :key.
@@ -120,12 +118,12 @@
else
true
end
# The maximum weight the carrier will accept.
- # @return [Quantified::Mass]
+ # @return [Measured::Weight]
def maximum_weight
- Mass.new(150, :pounds)
+ Measured::Weight.new(150, :pounds)
end
# The address field maximum length accepted by the carrier
# @return [Integer]
def maximum_address_field_length