Class: Openbeautyfacts::Locale

Inherits:
Openfoodfacts::Locale
  • Object
show all
Defined in:
lib/openbeautyfacts/locale.rb

Constant Summary collapse

GLOBAL =

Override constants for openbeautyfacts domain

'world'
DEFAULT_DOMAIN =
'openbeautyfacts.org'

Class Method Summary collapse

Class Method Details

.all(domain: DEFAULT_DOMAIN) ⇒ Object

Override all method to use openbeautyfacts domain



11
12
13
# File 'lib/openbeautyfacts/locale.rb', line 11

def all(domain: DEFAULT_DOMAIN)
  super(domain: domain)
end

.locale_from_pair(pair, domain: DEFAULT_DOMAIN) ⇒ Object

Override locale_from_pair method to use openbeautyfacts domain



16
17
18
# File 'lib/openbeautyfacts/locale.rb', line 16

def locale_from_pair(pair, domain: DEFAULT_DOMAIN)
  super(pair, domain: domain)
end