Class: Alchemy::Ingredients::SpreeVariantView

Inherits:
BaseView
  • Object
show all
Defined in:
app/components/alchemy/ingredients/spree_variant_view.rb

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
# File 'app/components/alchemy/ingredients/spree_variant_view.rb', line 8

def call
  variant.name
end

#render?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/components/alchemy/ingredients/spree_variant_view.rb', line 12

def render?
  !!variant
end