Sha256: 282a0e7b0855e402b9f1f624a505d77aeb3bdd0c652e583322f94a9361f8f971

Contents?: true

Size: 311 Bytes

Versions: 50

Compression:

Stored size: 311 Bytes

Contents

module Dugway
  module Drops
    class ShippingOptionDrop < BaseDrop
      def country
        @country ||= CountryDrop.new(source['country'])
      end

      # internal

      def strict
        @strict ||= product.shipping.size > 1 || product.shipping.first.country.name.present?
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
dugway-1.0.14 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.13 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.12 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.10 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.9 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.8 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.7 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.6 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.5 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.4 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.3 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.2 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.1 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-1.0.0 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.12.3 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.12.2 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.12.1 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.12.0 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.11.4 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.11.3 lib/dugway/liquid/drops/shipping_option_drop.rb