Sha256: 2d9c06df14effd39a50b16e0dfc79994c7f58abf3ed14549f7b5e59aabf562c6
Contents?: true
Size: 303 Bytes
Versions: 133
Compression:
Stored size: 303 Bytes
Contents
# frozen_string_literal: true module Spree module Stock class ShippingRateSelector attr_reader :shipping_rates def initialize(shipping_rates) @shipping_rates = shipping_rates end def find_default shipping_rates.min_by(&:cost) end end end end
Version data entries
133 entries across 133 versions & 2 rubygems