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.



543
544
545
546
547
# File 'lib/oddb/html/util/lookandfeel.rb', line 543

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

Instance Method Details

#base_urlObject



548
549
550
# File 'lib/oddb/html/util/lookandfeel.rb', line 548

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