Module: BellPepper
- Extended by:
- Configuration
- Defined in:
- lib/bell_pepper.rb,
lib/bell_pepper/error.rb,
lib/bell_pepper/request.rb,
lib/bell_pepper/version.rb
Defined Under Namespace
Classes: BadGateway, BadRequest, Error, GatewayTimeout, InternalServerError, NotFound, Request, ServiceUnavailable
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
Methods included from Configuration
Class Method Details
.bestgeoref(id: nil, city: nil, continent: nil, county: nil, country: nil, country_code: nil, give_me: "BEST_GEOREF", island: nil, locality: nil, municipality: nil, state_province: nil, verbose: false) ⇒ Hash
Get a georeference
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/bell_pepper.rb', line 30 def self.bestgeoref(id: nil, city: nil, continent: nil, county: nil, country: nil, country_code: nil, give_me: "BEST_GEOREF", island: nil, locality: nil, municipality: nil, state_province: nil, verbose: false) endpoint = "bestgeoref" Request.new( endpoint: endpoint, id: id, city: city, continent: continent, county: county, country: country, country_code: country_code, give_me: give_me, locality: locality, state_province: state_province, verbose: verbose).perform end |