Class: Faussaire::Creamerie
- Inherits:
-
Object
- Object
- Faussaire::Creamerie
- Defined in:
- lib/faussaire/creamerie.rb
Constant Summary collapse
- DATA_PATH =
File.('../../locale/fr.yml', __dir__)
Class Method Summary collapse
-
.butter ⇒ Hash
Produces a random butter.
-
.butter_producers ⇒ String
Produces information about top butter producers.
-
.cheese ⇒ Hash
Produces a random cheese.
-
.milk_type ⇒ String
Produces a random milk type.
Class Method Details
.butter ⇒ Hash
Produces a random butter.
26 27 28 29 30 31 |
# File 'lib/faussaire/creamerie.rb', line 26 def butter { name: fetch('fr.faussaire.creamerie.butter.name'), type: fetch('fr.faussaire.creamerie.butter.type') } end |
.butter_producers ⇒ String
Produces information about top butter producers.
40 41 42 |
# File 'lib/faussaire/creamerie.rb', line 40 def butter_producers fetch('fr.faussaire.creamerie.butter.top_producers') end |
.cheese ⇒ Hash
Produces a random cheese.
51 52 53 54 55 56 57 |
# File 'lib/faussaire/creamerie.rb', line 51 def cheese { type: fetch('fr.faussaire.creamerie.cheese.type'), name: fetch('fr.faussaire.creamerie.cheese.name'), region: fetch('fr.faussaire.creamerie.cheese.region') } end |
.milk_type ⇒ String
Produces a random milk type.
15 16 17 |
# File 'lib/faussaire/creamerie.rb', line 15 def milk_type fetch('fr.faussaire.creamerie.milk_type') end |