fellowshipone-api 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fellowshipone_api.gemspec +1 -1
- data/lib/api/search.rb +13 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97736debf84ce4d01fccd0bf084677619cbeb58f
|
4
|
+
data.tar.gz: e7918586a67d55f968cdc309a61acb28a4134fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d5a7dc8df96ad92e5a6a69a0cbc30f30d05eedfcb91d833118aa16bae9edf5aaba7770ad512f0a7200ab3dfc5071c7f2b285f17c30db2a4b83a43adbbde2867
|
7
|
+
data.tar.gz: 411884618429c5ea646ef44071fb4b3c4f5cbf72bdbd741627e08aef9c75f73af95f90c1778741a8af39fd29e5b9c44bb16433c0000b73183d01886620223fa4
|
data/fellowshipone_api.gemspec
CHANGED
data/lib/api/search.rb
CHANGED
@@ -12,13 +12,13 @@ module FellowshipOne
|
|
12
12
|
options = {:household_id => household_id, :page => page, :per_page => per_page}
|
13
13
|
reader = FellowshipOne::ContributionListReader.new(options)
|
14
14
|
ContributionList.new({:reader => reader})
|
15
|
-
end
|
15
|
+
end
|
16
16
|
|
17
17
|
def self.search_for_contributions_by_individual_id(individual_id, page=1, per_page=500)
|
18
18
|
options = {:individual_id => individual_id, :page => page, :per_page => per_page}
|
19
19
|
reader = FellowshipOne::ContributionListReader.new(options)
|
20
20
|
ContributionList.new({:reader => reader})
|
21
|
-
end
|
21
|
+
end
|
22
22
|
|
23
23
|
def self.search_for_person_by_name(query, page=1)
|
24
24
|
options = {:page => page, :search_for => query}
|
@@ -26,29 +26,35 @@ module FellowshipOne
|
|
26
26
|
PersonList.new({:reader => reader})
|
27
27
|
end
|
28
28
|
|
29
|
+
def self.search_for_person_by_name_and_email(name, email, page=1)
|
30
|
+
options = {:page => page, :search_for => name, :communication => email}
|
31
|
+
reader = FellowshipOne::PersonListReader.new(options)
|
32
|
+
PersonList.new({:reader => reader})
|
33
|
+
end
|
34
|
+
|
29
35
|
def self.search_for_person_by_household_id(query, page=1)
|
30
36
|
options = {:page => page, :hsdid => query}
|
31
37
|
reader = FellowshipOne::PersonListReader.new(options)
|
32
38
|
PersonList.new({:reader => reader})
|
33
|
-
end
|
39
|
+
end
|
34
40
|
|
35
41
|
def self.search_for_person_by_communication(query, page=1)
|
36
42
|
options = {:page => page, :communication => query}
|
37
43
|
reader = FellowshipOne::PersonListReader.new(options)
|
38
44
|
PersonList.new({:reader => reader})
|
39
|
-
end
|
45
|
+
end
|
40
46
|
|
41
47
|
def self.search_for_person_created_on_or_after(created_date, page=1)
|
42
48
|
options = {:page => page, :created_date => created_date}
|
43
49
|
reader = FellowshipOne::PersonListReader.new(options)
|
44
50
|
PersonList.new({:reader => reader})
|
45
|
-
end
|
51
|
+
end
|
46
52
|
|
47
53
|
def self.search_for_person_updated_on_or_after(updated_date, page=1)
|
48
54
|
options = {:page => page, :updated_date => updated_date}
|
49
55
|
reader = FellowshipOne::PersonListReader.new(options)
|
50
56
|
PersonList.new({:reader => reader})
|
51
|
-
end
|
57
|
+
end
|
52
58
|
|
53
59
|
def self.search_for_household_by_name(name, page=1)
|
54
60
|
options = {:page => page, :search_for => name}
|
@@ -58,4 +64,4 @@ module FellowshipOne
|
|
58
64
|
|
59
65
|
end
|
60
66
|
|
61
|
-
end
|
67
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fellowshipone-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wes Hays
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|