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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc5a8ff797a755ee5bdad38dd9965d5abc5c9e7a
4
- data.tar.gz: 91529a0138f771be7e9c45eebb47858b9864f9f7
3
+ metadata.gz: a960c1ecf07c6e286b5b543633c34e18379d1841
4
+ data.tar.gz: 10ec5ce24ce877441df8be9e9f19c31bfc6e32d9
5
5
  SHA512:
6
- metadata.gz: 400441df58e68ca125e0f894e5e101f417a328c31cc1aadee571ffc92c504685c3cabe35189770a1a2884e7f578af3adcb302844a0b3061c8ba127f93173b3eb
7
- data.tar.gz: 76282f49a6c5defaafab038d03ec54f218444606d56d60cae9aab8f472e93b00bf88a3eaa0114a594f0557e3c421d3c98725da6af19cf854686402bd80abc1fb
6
+ metadata.gz: cd5aa39e4d85247ff17ff60dbe124aa6395e60907fe0739d126416d769cd32c67d8d26d87d2ff0717ee15684cab6f88d63416fddbfdbd1d55ebb0baa69022406
7
+ data.tar.gz: 64eddddf554c07038d6cefb7f62e70a1f9dbf470c2d9c10f5085ced999e10fed4c5f5de49d147f854cc95685c57d3037b24d91e505fdd6247a60c06d2998cba8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fdic (0.1.0)
4
+ fdic (0.3.0)
5
5
  httparty (~> 0.13)
6
6
 
7
7
  GEM
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
 
@@ -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 :total_assets_in_thousands, 'totalAssets'
29
- currency_field :total_deposits_in_thousands, "totalDeposits"
30
- currency_field :domestic_deposits_in_thousands, "domesticDeposits"
31
- currency_field :bank_equity_capital_in_thousands, "bankEquityCapital"
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, &:to_f)
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
@@ -1,3 +1,3 @@
1
1
  module FDIC
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-04 00:00:00.000000000 Z
12
+ date: 2015-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty