Module: Unicafe
- Defined in:
- lib/unicafe.rb,
lib/unicafe/lunch.rb,
lib/unicafe/version.rb,
lib/unicafe/restaurant.rb,
lib/unicafe/price_parser.rb
Defined Under Namespace
Classes: Lunch, PriceParser, Restaurant
Constant Summary
collapse
- VERSION =
"0.0.3"
Class Method Summary
collapse
Class Method Details
.distances(latitude, longitude) ⇒ Object
17
18
19
|
# File 'lib/unicafe.rb', line 17
def self.distances(latitude, longitude)
::Unicafe::Restaurant.distances(latitude, longitude)
end
|
.get_restaurant(name) ⇒ Object
9
10
11
|
# File 'lib/unicafe.rb', line 9
def self.get_restaurant name
::Unicafe::Restaurant.find_by_name name
end
|
.nearest(latitude, longitude) ⇒ Object
13
14
15
|
# File 'lib/unicafe.rb', line 13
def self.nearest(latitude, longitude)
::Unicafe::Restaurant.nearest(latitude, longitude)
end
|