mais_person_client 0.0.6 → 0.0.7
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/Gemfile.lock +1 -1
- data/lib/mais_person_client/person.rb +10 -0
- data/lib/mais_person_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e167aee70695bb5ff0c65453161af066ade8475ad70e8d7c99b16ac309ee24d8
|
4
|
+
data.tar.gz: a45d3a227fe936e578f9fcb7856c8180657a9d67dd225c8b566794a71dfc15d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1ebaf7e377ed6d8fb5092410cb8176a714e0cd3b2d0bf355a0593291f23e4d8d68c12ab32a11553a85158e46bcef89118e9b799e82a93768d4600cd7e0873bd
|
7
|
+
data.tar.gz: d5a7417ae01a7500c91230839e63d6ffc3dd0fbe5fe2e9b542b0172f03195acbc14574655b8c333ea5f830500a1605f273eeb39097259ba422831410ba919b22
|
data/Gemfile.lock
CHANGED
@@ -193,6 +193,16 @@ class MaisPersonClient
|
|
193
193
|
aff.department&.adminid
|
194
194
|
end
|
195
195
|
|
196
|
+
# returns the effective_date for the primary affiliation (affnum == '1')
|
197
|
+
def primary_effective_date
|
198
|
+
# Find the affiliation with affnum == '1' and return the effective date
|
199
|
+
aff = affiliations.find { |a| a.affnum == '1' }
|
200
|
+
return nil unless aff
|
201
|
+
|
202
|
+
# effective date
|
203
|
+
aff.effective
|
204
|
+
end
|
205
|
+
|
196
206
|
# indicates if a person is a member of the academic council
|
197
207
|
def academic_council?
|
198
208
|
# If there are no affiliations, the person is not a member of the academic council
|