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



527
528
529
530
# File 'lib/oddb/html/util/lookandfeel.rb', line 527

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

#price_factorObject



531
532
533
# File 'lib/oddb/html/util/lookandfeel.rb', line 531

def price_factor
  tax_factor * currency_factor
end

#tax_factorObject



534
535
536
# File 'lib/oddb/html/util/lookandfeel.rb', line 534

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