lib/nds_api/url.rb in nds_api-0.1.21 vs lib/nds_api/url.rb in nds_api-0.1.22
- old
+ new
@@ -91,9 +91,14 @@
def provider_by_id(id)
"#{base_url}/providers/search/findByProviderId?providerId=#{id}"
end
+ def providers_by_owner_or_center_name(params)
+ params = URI.encode_www_form(params) if params
+ "#{provider_search}/findByOwnerOrCenterName#{params ? "?#{params}" : ''}"
+ end
+
def providers_by_center_name(center_name)
"#{provider_search}/findByCenterName?centerName=#{center_name}"
end
def providers_by_email(email)