Class: Comable::Product
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comable::Product
- Includes:
- Decoratable
- Defined in:
- app/models/comable/product.rb
Instance Method Summary collapse
Methods included from Decoratable
Instance Method Details
#sku_h? ⇒ Boolean Also known as: sku?
16 17 18 |
# File 'app/models/comable/product.rb', line 16 def sku_h? sku_h_item_name.present? end |
#sku_v? ⇒ Boolean
20 21 22 |
# File 'app/models/comable/product.rb', line 20 def sku_v? sku_v_item_name.present? end |
#soldout? ⇒ Boolean
12 13 14 |
# File 'app/models/comable/product.rb', line 12 def soldout? !unsold? end |
#unsold? ⇒ Boolean
8 9 10 |
# File 'app/models/comable/product.rb', line 8 def unsold? stocks.activated.unsold.exists? end |