fellowshipone 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/fellowshipone.gemspec +1 -1
- data/lib/fellowshipone/responses/contribution.rb +7 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3d3e8fd739f06877331528a5b336f0bd9a07652a3b1bb636252412fe58f43725
|
4
|
+
data.tar.gz: b3dcf555047b91033c7e484e0f0459e3fbeed7a94518fe78672ce92f5a2fa386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979700cfeab5b167e679bbe7ef5ed93b8eee9d4a6b483b14c39ab59868e56fde8ac795ec3426714c3655ac8cedd0dd3ec3020c3901c72f844e3e0220b567faef
|
7
|
+
data.tar.gz: d65b3e8cc2125d16c8f7404f6507445d8f6749c8f20e1e27b62fac2168c676174e1148888fc2b6fe8d17d33364acd5a1dcc11cfa0a4db8aa6c515ea9dcf37ab9
|
data/fellowshipone.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'fellowshipone'
|
5
|
-
s.version = '2.
|
5
|
+
s.version = '2.3.0'
|
6
6
|
s.authors = ['Taylor Brooks']
|
7
7
|
s.email = ['tbrooks@gmail.com']
|
8
8
|
s.homepage = 'https://github.com/taylorbrooks/fellowshipone'
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module Fellowshipone
|
2
2
|
class Contribution
|
3
|
-
|
4
3
|
def self.format(res)
|
5
|
-
response = res[
|
4
|
+
response = res['contributionReceipt']
|
6
5
|
if response.is_a?(Array)
|
7
6
|
response.map{|contribution| format_contribution(contribution) }
|
8
7
|
else
|
@@ -12,11 +11,12 @@ module Fellowshipone
|
|
12
11
|
|
13
12
|
def self.format_contribution(contribution)
|
14
13
|
OpenStruct.new(
|
15
|
-
id: contribution[
|
16
|
-
amount: contribution[
|
17
|
-
fund: contribution[
|
18
|
-
sub_fund: contribution[
|
19
|
-
date: contribution[
|
14
|
+
id: contribution['@id'],
|
15
|
+
amount: contribution['amount'],
|
16
|
+
fund: contribution['fund']['name'],
|
17
|
+
sub_fund: contribution['subFund']['name'],
|
18
|
+
date: contribution['receivedDate'],
|
19
|
+
fund_type_id: contribution['fund']['fundTypeID']
|
20
20
|
)
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fellowshipone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -226,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
|
230
|
-
rubygems_version: 2.6.13
|
229
|
+
rubygems_version: 3.0.3
|
231
230
|
signing_key:
|
232
231
|
specification_version: 4
|
233
232
|
summary: Ruby gem/plugin to interact with the FellowshipOne API (https://developer.fellowshipone.com/).
|