Class: ODDB::Html::Util::LookandfeelWrapper
- Inherits:
-
SBSM::LookandfeelWrapper
- Object
- SBSM::LookandfeelWrapper
- ODDB::Html::Util::LookandfeelWrapper
show all
- Defined in:
- lib/oddb/html/util/lookandfeel.rb
Instance Method Summary
collapse
Instance Method Details
#base_url ⇒ Object
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_factor ⇒ Object
572
573
574
|
# File 'lib/oddb/html/util/lookandfeel.rb', line 572
def price_factor
tax_factor * currency_factor
end
|
#tax_factor ⇒ Object
575
576
577
|
# File 'lib/oddb/html/util/lookandfeel.rb', line 575
def tax_factor
(1 + tax_factor_add) / (1 + tax_factor_sub)
end
|