Class: Product

Inherits:
Item
  • Object
show all
Defined in:
app/models/product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#priceObject



9
# File 'app/models/product.rb', line 9

def price; @price ||= 0 end

Instance Method Details

#price_with_currencyObject



11
12
13
# File 'app/models/product.rb', line 11

def price_with_currency
  "#{price} #{rad.store.currency}"
end