Class: Openbeautyfacts::ManufacturingPlace
- Inherits:
-
Openfoodfacts::ManufacturingPlace
- Object
- Openfoodfacts::ManufacturingPlace
- Openbeautyfacts::ManufacturingPlace
- Defined in:
- lib/openbeautyfacts/manufacturing_place.rb
Constant Summary collapse
- DEFAULT_LOCALE =
Override constants for openbeautyfacts domain
Locale::GLOBAL
- DEFAULT_DOMAIN =
'openbeautyfacts.org'
Class Method Summary collapse
-
.all(locale: DEFAULT_LOCALE, domain: DEFAULT_DOMAIN, **options) ⇒ Object
Override all method to use openbeautyfacts domain if it exists.
Instance Method Summary collapse
-
#products(page: -1)) ⇒ Object
Override products method to use openbeautyfacts domain if it exists.
Class Method Details
.all(locale: DEFAULT_LOCALE, domain: DEFAULT_DOMAIN, **options) ⇒ Object
Override all method to use openbeautyfacts domain if it exists
11 12 13 14 15 |
# File 'lib/openbeautyfacts/manufacturing_place.rb', line 11 def all(locale: DEFAULT_LOCALE, domain: DEFAULT_DOMAIN, **) super(locale: locale, domain: domain, **) rescue NoMethodError # Method doesn't exist in parent class, skip end |
Instance Method Details
#products(page: -1)) ⇒ Object
Override products method to use openbeautyfacts domain if it exists
19 20 21 22 23 |
# File 'lib/openbeautyfacts/manufacturing_place.rb', line 19 def products(page: -1) super(page: page) rescue NoMethodError # Method doesn't exist in parent class, skip end |