Class: Workarea::GlobalE::FixedPrice
- Inherits:
-
Object
- Object
- Workarea::GlobalE::FixedPrice
- Includes:
- ApplicationDocument, Releasable
- Defined in:
- app/models/workarea/global_e/fixed_price.rb
Instance Method Summary collapse
Instance Method Details
#currency ⇒ Object
24 25 26 |
# File 'app/models/workarea/global_e/fixed_price.rb', line 24 def currency Money::Currency.find currency_code end |
#sell ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/models/workarea/global_e/fixed_price.rb', line 28 def sell if on_sale? && sale.present? sale else regular end end |