fdic 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/fdic/institution.rb +4 -4
- data/lib/fdic/record.rb +3 -1
- data/lib/fdic/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: a960c1ecf07c6e286b5b543633c34e18379d1841
|
4
|
+
data.tar.gz: 10ec5ce24ce877441df8be9e9f19c31bfc6e32d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd5aa39e4d85247ff17ff60dbe124aa6395e60907fe0739d126416d769cd32c67d8d26d87d2ff0717ee15684cab6f88d63416fddbfdbd1d55ebb0baa69022406
|
7
|
+
data.tar.gz: 64eddddf554c07038d6cefb7f62e70a1f9dbf470c2d9c10f5085ced999e10fed4c5f5de49d147f854cc95685c57d3037b24d91e505fdd6247a60c06d2998cba8
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[![Code Climate](https://codeclimate.com/github/ContinuityControl/fdic/badges/gpa.svg)](https://codeclimate.com/github/ContinuityControl/fdic)
|
2
2
|
[![Test Coverage](https://codeclimate.com/github/ContinuityControl/fdic/badges/coverage.svg)](https://codeclimate.com/github/ContinuityControl/fdic/coverage)
|
3
|
+
[![Build Status](https://travis-ci.org/ContinuityControl/fdic.svg?branch=master)](https://travis-ci.org/ContinuityControl/fdic)
|
3
4
|
|
4
5
|
# FDIC
|
5
6
|
|
data/lib/fdic/institution.rb
CHANGED
@@ -25,10 +25,10 @@ module FDIC
|
|
25
25
|
date_field :report_date, "reportDate" # This is NOT the date the query was made.
|
26
26
|
|
27
27
|
int_field :office_count, "officeCount"
|
28
|
-
currency_field :
|
29
|
-
currency_field :
|
30
|
-
currency_field :
|
31
|
-
currency_field :
|
28
|
+
currency_field :total_assets, 'totalAssets'
|
29
|
+
currency_field :total_deposits, "totalDeposits"
|
30
|
+
currency_field :domestic_deposits, "domesticDeposits"
|
31
|
+
currency_field :bank_equity_capital, "bankEquityCapital"
|
32
32
|
|
33
33
|
def find_history_events!
|
34
34
|
@history_events ||= FDIC.find_history_events(legal_name, certificate_number)
|
data/lib/fdic/record.rb
CHANGED
@@ -20,7 +20,9 @@ module FDIC
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.currency_field(method_name, response_key=method_name)
|
23
|
-
field(method_name, response_key
|
23
|
+
field(method_name, response_key) { |value|
|
24
|
+
value.to_f * 1000
|
25
|
+
}
|
24
26
|
end
|
25
27
|
|
26
28
|
def self.date_field(method_name, response_key=method_name)
|
data/lib/fdic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Reznick
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|