Module: Guidestar::Request
- Included in:
- Client
- Defined in:
- lib/guidestar/request.rb
Instance Method Summary collapse
Instance Method Details
#get(path, data = {}) ⇒ Object
4 5 6 7 |
# File 'lib/guidestar/request.rb', line 4 def get(path, data={}) set_params(data) Guidestar::Result.new(path,self) end |
#get_raw(path, data = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/guidestar/request.rb', line 9 def get_raw(path, data={}) response = connection.get do |request| request.url("/GuideStar_SearchService/searchservice.asmx#{path}", set_params(data)) end response if response.status == 200 end |