justgiving 0.0.6 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/justgiving/charity.rb +4 -4
- data/lib/justgiving/country.rb +1 -1
- data/lib/justgiving/currency.rb +1 -1
- data/lib/justgiving/donation.rb +2 -2
- data/lib/justgiving/search.rb +5 -5
- data/lib/justgiving/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccb5e54e49a507a3bbb068d62ac4f21e6e42aaf6
|
|
4
|
+
data.tar.gz: 7027a1f332ab1fe04f008ceb4a768e44de40b15d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddd0bd40d46ef08df75cb0f8025816db0dd94545875bada88036963a436738f1b8df9c3f4e4ae7700f6a3c9c435fd6defb2c332d328e7a8bdc804c3995dc0a82
|
|
7
|
+
data.tar.gz: 04d2f2ad3da1f119588b6bfca6e8fe6748d38977de36157e8ed373c1947919ad43b64a5d8df6e3192f239a0e0dbf30ea4b667aed533281afdfbb5fc701173cfd
|
data/lib/justgiving/charity.rb
CHANGED
|
@@ -3,19 +3,19 @@ require_relative "client"
|
|
|
3
3
|
module JustGiving
|
|
4
4
|
class Charity < Client
|
|
5
5
|
|
|
6
|
-
def
|
|
6
|
+
def get_by_charity_id(id)
|
|
7
7
|
get("charity/#{id}")
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
def
|
|
10
|
+
def get_events_by_charity_id(id)
|
|
11
11
|
get("charity/#{id}/events")
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def
|
|
14
|
+
def get_donations_by_charity_id(id)
|
|
15
15
|
get("charity/#{id}/donations")
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def
|
|
18
|
+
def get_charity_categories
|
|
19
19
|
get("charity/categories")
|
|
20
20
|
end
|
|
21
21
|
|
data/lib/justgiving/country.rb
CHANGED
data/lib/justgiving/currency.rb
CHANGED
data/lib/justgiving/donation.rb
CHANGED
|
@@ -3,11 +3,11 @@ require_relative "client"
|
|
|
3
3
|
module JustGiving
|
|
4
4
|
class Donation < Client
|
|
5
5
|
|
|
6
|
-
def
|
|
6
|
+
def get_details_by_donation_id(id)
|
|
7
7
|
get("donation/#{id}")
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
def
|
|
10
|
+
def get_status_by_donation_id(id)
|
|
11
11
|
get("donation/#{id}/status")
|
|
12
12
|
end
|
|
13
13
|
|
data/lib/justgiving/search.rb
CHANGED
|
@@ -3,23 +3,23 @@ require_relative "client"
|
|
|
3
3
|
module JustGiving
|
|
4
4
|
class Search < Client
|
|
5
5
|
|
|
6
|
-
def
|
|
6
|
+
def search_charities(filters = {})
|
|
7
7
|
get("charity/search", filters)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
def
|
|
10
|
+
def search_events(filters = {})
|
|
11
11
|
get("event/search", filters)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def
|
|
14
|
+
def search_fundraisers(filters = {})
|
|
15
15
|
get("fundraising/search", filters)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def
|
|
18
|
+
def search_commemorations(filters = {})
|
|
19
19
|
get("remember/search", filters)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def
|
|
22
|
+
def search_teams(filters = {})
|
|
23
23
|
get("team/search", filters)
|
|
24
24
|
end
|
|
25
25
|
|
data/lib/justgiving/version.rb
CHANGED