Class: ODDB::Html::Util::LookandfeelWrapper

Inherits:
SBSM::LookandfeelWrapper
  • Object
show all
Defined in:
lib/oddb/html/util/lookandfeel.rb

Instance Method Summary collapse

Instance Method Details

#base_urlObject



568
569
570
571
# File 'lib/oddb/html/util/lookandfeel.rb', line 568

def base_url
  [@session.http_protocol + ':/', @session.server_name,
    @language, @session.zone].compact.join("/")
end

#price_factorObject



572
573
574
# File 'lib/oddb/html/util/lookandfeel.rb', line 572

def price_factor
  tax_factor * currency_factor
end

#tax_factorObject



575
576
577
# File 'lib/oddb/html/util/lookandfeel.rb', line 575

def tax_factor
  (1 + tax_factor_add) / (1 + tax_factor_sub)
end