Class: ODDB::Html::Util::LookandfeelStub

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

Constant Summary

Constants inherited from Lookandfeel

ODDB::Html::Util::Lookandfeel::DICTIONARIES, ODDB::Html::Util::Lookandfeel::RESOURCES

Instance Method Summary collapse

Methods inherited from Lookandfeel

#captcha, #csv_components, #currency_factor, #generate_challenge, #legend_components, #price_factor, #products_components, #result_components, #tax_factor, #tax_factor_add, #tax_factor_sub

Constructor Details

#initialize(language, zone = 'drugs') ⇒ LookandfeelStub

Returns a new instance of LookandfeelStub.



687
688
689
690
691
# File 'lib/oddb/html/util/lookandfeel.rb', line 687

def initialize(language, zone='drugs')
  @language = language
  @zone = zone
  set_dictionary(@language)
end

Instance Method Details

#base_urlObject



692
693
694
# File 'lib/oddb/html/util/lookandfeel.rb', line 692

def base_url
  sprintf "http://%s/%s/%s", ODDB.config.server_name, @language, @zone
end