lib/firstgiving/search.rb in firstgiving-1.0.0 vs lib/firstgiving/search.rb in firstgiving-1.0.1

- old
+ new

@@ -1,25 +1,23 @@ require 'json' # Search API module FirstGiving - class Search - include Base module Actions - LIST_ORGANIZATION = "/v1/list/organization" + LIST_ORGANIZATION = '/v1/list/organization' end def initialize @api_endpoint = SEARCH_ENDPOINT end def headers - {'Accept' => 'application/json'} + { 'Accept' => 'application/json' } end def query(params) response = get_call(@api_endpoint, Actions::LIST_ORGANIZATION, params, headers) parse(response.body) @@ -28,7 +26,6 @@ def parse(body) response = JSON.parse(body) response['payload'] end end - end