module Gurunavi::Rests
Public Instance Methods
foreign_rest_search(options={})
click to toggle source
Ref: api.gnavi.co.jp/api/manual/foreignrestsearch/
# File lib/gurunavi/rests.rb, line 16 def foreign_rest_search(options={}) response = connection.get do |req| req.url "ForeignRestSearchAPI/#{@api_version}", options end response_body = return_error_or_body(response, response.body.rest) convert_to_array_if_needed(response_body) end
rest_search(options={})
click to toggle source
Ref: api.gnavi.co.jp/api/manual/restsearch/
# File lib/gurunavi/rests.rb, line 7 def rest_search(options={}) response = connection.get do |req| req.url "RestSearchAPI/#{@api_version}", options end response_body = return_error_or_body(response, response.body.rest) convert_to_array_if_needed(response_body) end