Class: Dugway::Drops::ShippingOptionDrop
- Defined in:
- lib/dugway/liquid/drops/shipping_option_drop.rb
Instance Attribute Summary
Attributes inherited from BaseDrop
Instance Method Summary collapse
- #country ⇒ Object
-
#strict ⇒ Object
internal.
Methods inherited from BaseDrop
#before_method, #cart, #context=, #error, #errors, #initialize, #method_missing, #store, #theme
Constructor Details
This class inherits a constructor from Dugway::Drops::BaseDrop
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dugway::Drops::BaseDrop
Instance Method Details
#country ⇒ Object
4 5 6 |
# File 'lib/dugway/liquid/drops/shipping_option_drop.rb', line 4 def country @country ||= CountryDrop.new(source['country']) end |
#strict ⇒ Object
internal
10 11 12 |
# File 'lib/dugway/liquid/drops/shipping_option_drop.rb', line 10 def strict @strict ||= product.shipping.size > 1 || product.shipping.first.country.name.present? end |