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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 629b5bdc1835533dadf6ddb4b67f5be1e0d78ed0701b9a40f9082cb5f0ff784f
4
- data.tar.gz: 444a22fb02e0a0de7303d20a90886c88935554049396359c28c4efb46b222186
3
+ metadata.gz: e167aee70695bb5ff0c65453161af066ade8475ad70e8d7c99b16ac309ee24d8
4
+ data.tar.gz: a45d3a227fe936e578f9fcb7856c8180657a9d67dd225c8b566794a71dfc15d1
5
5
  SHA512:
6
- metadata.gz: 31c99a8035117d2591753e2e0fd9578c408331c0b58e79d1c238f1144cd248b6771487a92740724b3e011c919c3f82d7ac23f4723b7b93476db45e441b810cda
7
- data.tar.gz: 583f3e6a7cc3b265fa10d0cfd320b9eb4c3afe486731f5997b9d32efd9e4acc6456911ff6cab0254a2e738825ca7616d22a3565b87db9e307e2c3758026394b1
6
+ metadata.gz: b1ebaf7e377ed6d8fb5092410cb8176a714e0cd3b2d0bf355a0593291f23e4d8d68c12ab32a11553a85158e46bcef89118e9b799e82a93768d4600cd7e0873bd
7
+ data.tar.gz: d5a7417ae01a7500c91230839e63d6ffc3dd0fbe5fe2e9b542b0172f03195acbc14574655b8c333ea5f830500a1605f273eeb39097259ba422831410ba919b22
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mais_person_client (0.0.6)
4
+ mais_person_client (0.0.7)
5
5
  activesupport (>= 4.2)
6
6
  faraday
7
7
  faraday-retry
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class MaisPersonClient
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mais_person_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Mangiafico