Class: Workarea::GlobalE::FixedPrice

Inherits:
Object
  • Object
show all
Includes:
ApplicationDocument, Releasable
Defined in:
app/models/workarea/global_e/fixed_price.rb

Instance Method Summary collapse

Instance Method Details

#currencyObject



24
25
26
# File 'app/models/workarea/global_e/fixed_price.rb', line 24

def currency
  Money::Currency.find currency_code
end

#sellObject



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