Class: JustGiving::Charity

Inherits:
Client
  • Object
show all
Defined in:
lib/justgiving/charity.rb

Instance Method Summary collapse

Methods inherited from Client

#initialize

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_categoriesObject

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", )

end



14
15
16
# File 'lib/justgiving/charity.rb', line 14

def get_events_by_charity_id(id)
  get("charity/#{id}/events")
end