Sha256: c730ad67f49a9390d5aadbfd6e8d00cd9c9ffe9cf46184ed3bc667806c6af355

Contents?: true

Size: 425 Bytes

Versions: 41

Compression:

Stored size: 425 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Shipping
    
    class RateResponse < Response
      
      attr_reader :rates
      
      def initialize(success, message, params = {}, options = {})
        @rates = Array(options[:estimates] || options[:rates] || options[:rate_estimates])
        super
      end
      
      alias_method :estimates, :rates
      alias_method :rate_estimates, :rates
      
    end
    
  end
end

Version data entries

41 entries across 41 versions & 5 rubygems

Version Path
bcarpenter-active_shipping-0.0.2 lib/active_shipping/shipping/rate_response.rb
bcarpenter-active_shipping-0.0.5 lib/active_shipping/shipping/rate_response.rb
bcarpenter-active_shipping-0.0.6 lib/active_shipping/shipping/rate_response.rb
bcarpenter-active_shipping-0.0.7 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.12.4 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.12.3 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.12.2 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.12.1 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.12.0 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.11.2 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.11.1 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.11.0 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.10.1 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.10.0 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.9.15 lib/active_shipping/shipping/rate_response.rb
kschadeck-active_shipping-0.9.15 lib/active_shipping/shipping/rate_response.rb
active_shipping-0.9.14 lib/active_shipping/shipping/rate_response.rb
rclements_active_shipping-0.9.15 lib/active_shipping/shipping/rate_response.rb
rclements_active_shipping-0.9.14 lib/active_shipping/shipping/rate_response.rb
rclements_active_shipping-0.9.13 lib/active_shipping/shipping/rate_response.rb