Class: Faker::Restaurant
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.description ⇒ String
Produces a description of a restaurant.
-
.name ⇒ String
Produces the name of a restaurant.
-
.review ⇒ String
Produces a review for a restaurant.
-
.type ⇒ String
Produces a type of restaurant.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.description ⇒ String
Produces a description of a restaurant.
44 45 46 |
# File 'lib/faker/default/restaurant.rb', line 44 def description fetch('restaurant.description') end |
.name ⇒ String
Produces the name of a restaurant.
17 18 19 |
# File 'lib/faker/default/restaurant.rb', line 17 def name bothify(parse('restaurant.name')) end |
.review ⇒ String
Produces a review for a restaurant.
58 59 60 |
# File 'lib/faker/default/restaurant.rb', line 58 def review fetch('restaurant.review') end |
.type ⇒ String
Produces a type of restaurant.
30 31 32 |
# File 'lib/faker/default/restaurant.rb', line 30 def type fetch('restaurant.type') end |