greensky 1.9.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/greensky.rb +11 -0
- data/lib/greensky/long_application.rb +5 -1
- data/lib/greensky/version.rb +1 -1
- 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: 617cafe2e731eff35f99eeb07b79d3ede4bdaaca
|
4
|
+
data.tar.gz: 96ad152d84905fca53c177299989339d343339e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 054230e6b8d6724caea2a156bc22616100a661ad3e521de853b68c13ba2f2d660d990c5f92ec2bcee23301c14c667c97e00de1a75eb9f20090a52b941df73f48
|
7
|
+
data.tar.gz: 87329d5efd8c5e27e291f3f89836cb4b5c56dbe631932d848a7366cc537da6e584b6ecf7d60355a6964fcdcf4e04ae594d9ba564b13a6a2ad294d4e7306a22b5
|
data/lib/greensky.rb
CHANGED
@@ -97,4 +97,15 @@ module Greensky
|
|
97
97
|
|
98
98
|
client.post 'recalculateoffer', data, token: application.token
|
99
99
|
end
|
100
|
+
|
101
|
+
def self.decision(application)
|
102
|
+
data = {
|
103
|
+
program: application.program,
|
104
|
+
product: application.product,
|
105
|
+
role: application.role,
|
106
|
+
applicationId: application.applicationId,
|
107
|
+
}
|
108
|
+
|
109
|
+
client.get 'decision', data, token: application.token
|
110
|
+
end
|
100
111
|
end
|
@@ -108,8 +108,12 @@ module Greensky
|
|
108
108
|
Greensky.download_document(self, &block)
|
109
109
|
end
|
110
110
|
|
111
|
+
def decision
|
112
|
+
Greensky.decision(self)
|
113
|
+
end
|
114
|
+
|
111
115
|
def application_status
|
112
|
-
|
116
|
+
decision['status']
|
113
117
|
end
|
114
118
|
|
115
119
|
def referral
|
data/lib/greensky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: greensky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Palhares
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|