Sha256: 3347f9e540187ab5d26890d830f9df01469403b835c5f8eda4b300b7ca64b527

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

module ActiveShipping
  decorate RateEstimate, with: :kount do
    decorated { attr_accessor :kount_code }

    def initialize(origin, destination, carrier, service_name, options = {})
      super
      self.kount_code = options[:kount_code]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-kount-3.3.1 app/lib/active_shipping/rate_estimate.decorator
workarea-kount-3.3.0 app/lib/active_shipping/rate_estimate.decorator