Module: KindridClient::Donor
- Included in:
- Client
- Defined in:
- lib/kindrid_client/client/donor.rb
Instance Method Summary collapse
Instance Method Details
#donor(id, options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/kindrid_client/client/donor.rb', line 14 def donor(id, ={}) params = {} params.merge!() # clear empty key/value pairs params.reject! { |key, value| value.nil? } get("donors/#{id}", params).results.first end |
#donors(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/kindrid_client/client/donor.rb', line 4 def donors(={}) params = {} params.merge!() # clear empty key/value pairs params.reject! { |key, value| value.nil? } get("donors", params).results end |