Class: Openbeautyfacts::Additive

Inherits:
Openfoodfacts::Additive
  • Object
show all
Defined in:
lib/openbeautyfacts/additive.rb

Constant Summary collapse

DEFAULT_LOCALE =

Override constants for openbeautyfacts domain

Locale::GLOBAL
DEFAULT_DOMAIN =
'openbeautyfacts.org'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all(locale: DEFAULT_LOCALE, domain: DEFAULT_DOMAIN) ⇒ Object

Override all method to use openbeautyfacts domain



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

def all(locale: DEFAULT_LOCALE, domain: DEFAULT_DOMAIN)
  super(locale: locale, domain: domain)
end

Instance Method Details

#products(page: -1)) ⇒ Object

Override products method to use openbeautyfacts domain



17
18
19
# File 'lib/openbeautyfacts/additive.rb', line 17

def products(page: -1)
  super(page: page)
end