Module: FoundationCenter
- Defined in:
- lib/foundation_center.rb,
lib/foundation_center/version.rb
Constant Summary collapse
- URL =
'http://gisdev.foundationcenter.org/sustainArts/webServices'
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.get_recipient_details(ein) ⇒ Object
14 15 16 17 |
# File 'lib/foundation_center.rb', line 14 def get_recipient_details(ein) response = resource['getRecipientDetails.php'].get :params => {:ein => ein} JSON.parse response end |
.get_recipients ⇒ Object
9 10 11 12 |
# File 'lib/foundation_center.rb', line 9 def get_recipients response = resource['getRecipients.php'].get JSON.parse response end |
.resource ⇒ Object
19 20 21 |
# File 'lib/foundation_center.rb', line 19 def resource RestClient::Resource.new(URL) end |