Module: Comable::SkuItem

Included in:
OrderItem, Product, Stock
Defined in:
app/models/concerns/comable/sku_item.rb

Overview

SKU項目 商品と注文明細にSKU項目としての機能を付与するためのモジュール

Instance Method Summary collapse

Instance Method Details

#sku_h?Boolean Also known as: sku?

Returns:

  • (Boolean)


7
8
9
# File 'app/models/concerns/comable/sku_item.rb', line 7

def sku_h?
  sku_h_item_name.present?
end

#sku_v?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/concerns/comable/sku_item.rb', line 11

def sku_v?
  sku_v_item_name.present?
end