Sha256: 69fe8096b7490e4743dfd8ba8da1021a0553d1ecbff9c72facabdfdb086d8ea8

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dugway-0.5.3 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.5.2 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.5.1 lib/dugway/liquid/drops/shipping_option_drop.rb
dugway-0.5.0 lib/dugway/liquid/drops/shipping_option_drop.rb