Class: JustGiving::Charity
Instance Method Summary collapse
- #get_by_charity_id(id) ⇒ Object
-
#get_charity_categories ⇒ Object
Todo CharityDeleteFundraisingPageAttribution CharityUpdateFundraisingPageAttribution CharityAppendToFundraisingPageAttribution CharityGetFundraisingPageAttribution.
- #get_donations_by_charity_id(id) ⇒ Object
-
#get_events_by_charity_id(id) ⇒ Object
def authenticate_charity_account(account_details = {}) post(“charity/authenticate”, account_details) end.
Methods inherited from Client
Constructor Details
This class inherits a constructor from JustGiving::Client
Instance Method Details
#get_by_charity_id(id) ⇒ Object
6 7 8 |
# File 'lib/justgiving/charity.rb', line 6 def get_by_charity_id(id) get("charity/#{id}") end |
#get_charity_categories ⇒ Object
Todo CharityDeleteFundraisingPageAttribution CharityUpdateFundraisingPageAttribution CharityAppendToFundraisingPageAttribution CharityGetFundraisingPageAttribution
28 29 30 |
# File 'lib/justgiving/charity.rb', line 28 def get_charity_categories get("charity/categories") end |
#get_donations_by_charity_id(id) ⇒ Object
18 19 20 |
# File 'lib/justgiving/charity.rb', line 18 def get_donations_by_charity_id(id) get("charity/#{id}/donations") end |
#get_events_by_charity_id(id) ⇒ Object
def authenticate_charity_account(account_details = {})
post("charity/authenticate", account_details)
end
14 15 16 |
# File 'lib/justgiving/charity.rb', line 14 def get_events_by_charity_id(id) get("charity/#{id}/events") end |