Module: Volunteermatch::API::SearchOrganizations
- Included in:
- Client
- Defined in:
- lib/volunteermatch/api/search_organizations.rb
Instance Method Summary collapse
Instance Method Details
#search_organizations(parameters = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/volunteermatch/api/search_organizations.rb', line 4 def search_organizations(parameters = {}) raise ArgumentError, 'location needs to be defined' if parameters[:location].nil? || parameters[:location].empty? parameters[:location] = parameters[:location] || nil call(:searchOrganizations, parameters.to_json) end |