finapps 0.16.2.pre → 0.16.3.pre

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
  SHA1:
3
- metadata.gz: f735c7f5fca52779650717c866223e0ca1930e8f
4
- data.tar.gz: 8d52c46741207baf715a2b6d47780cbca753cf3f
3
+ metadata.gz: 64cfd7647ad8012bec1a5488b24827ead2d2359c
4
+ data.tar.gz: 63937c29ea02682610cfe9de5a944b1da43358d3
5
5
  SHA512:
6
- metadata.gz: ed47505523b8c60bfcb42fe58602a4b8f0142b8dde622fbd3a2d0f54003b0513be72c7600d4d166a7abec2396789e4dd34d18751198647949c0c754b20ca8802
7
- data.tar.gz: d1e2c96b096228adadccd4fff4435e32f1a1c1a63ec2546359054b9536ad558a56e634a4c342d0dbc5fba3605792f6b85615b758739c20317346cf85920f1332
6
+ metadata.gz: 7fb073c6b065782a65cf49d0a012e129e0f6aa49bf77bb551ca5b5af35fa0094afbf5fef35a006f0b3cf4434e264a54228d184132f72330746677339805792aa
7
+ data.tar.gz: bf7e4cd89c12a1872b4f7f692b6f00eded3ec23078fb9d7cc5d04197cc8de429b72480d7e15fe1b2d48cf37c4baf32cdb5173e62e6db345cf8ff0cdb03248e41
@@ -65,21 +65,14 @@ module FinApps
65
65
 
66
66
  def result_category_to_cashflow_detail(category)
67
67
  raise 'Unable to locate category id for current category record.' unless category.key?('cat')
68
- category_id = category['cat']
69
-
70
68
  raise 'Unable to locate inflow amount for current category record.' unless category.key?('inflow')
71
- inflow_amount = category['inflow']
72
-
73
69
  raise 'Unable to locate outflow amount for current category record.' unless category.key?('outflow')
74
- outflow_amount = category['outflow']
75
-
76
70
  raise 'Unable to locate left over amount for current category record.' unless category.key?('diff')
77
- leftover_amount = category['diff']
78
71
 
79
- CashflowDetail.new({:category_id => category_id,
80
- :inflow_amount => inflow_amount,
81
- :outflow_amount => outflow_amount,
82
- :leftover_amount => leftover_amount})
72
+ CashflowDetail.new({:category_id => category['cat'],
73
+ :income_amount => category['inflow'],
74
+ :expenses_amount => category['outflow'],
75
+ :leftover_amount => category['diff']})
83
76
  end
84
77
 
85
78
  end
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.16.2.pre'
2
+ VERSION = '0.16.3.pre'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.2.pre
4
+ version: 0.16.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero