Class: Wego::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/wego/location.rb

Class Method Summary collapse

Class Method Details

.find(location, options = {}) ⇒ Object


3
4
5
6
7
8
# File 'lib/wego/location.rb', line 3

def self.find(location, options = {})
  Wego.get_resource(
    "locations/search",
    options.merge(q: location)
  )
end