Class: SpreeSquare::ModifierList

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree_square/modifier_list.rb

Overview

Mirrors a Square MODIFIER_LIST (e.g. "Choose your sauce"). Modeled separately from Spree's OptionType/Variant system on purpose — Square modifiers are multi-select, per-line-item customizations, not mutually exclusive product variations, and forcing them through OptionType would explode the variant matrix combinatorially.

Constant Summary collapse

SINGLE =
'SINGLE'.freeze
MULTIPLE =
'MULTIPLE'.freeze

Instance Method Summary collapse

Instance Method Details

#multiple?Boolean

Returns:

  • (Boolean)


21
# File 'app/models/spree_square/modifier_list.rb', line 21

def multiple? = selection_type == MULTIPLE