finapps 0.16.0.pre → 0.16.1.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: fb3b3440f5bca209610fcf02bbc8e0bac6f92ca6
4
- data.tar.gz: 799674cd7b7444eeef4b05d5856cf442b90c65d8
3
+ metadata.gz: f5be355d397d92647a91a68a9a41290bef6a95e6
4
+ data.tar.gz: 8d6de342e42aa583e854d22b56e50fc741cf6ac9
5
5
  SHA512:
6
- metadata.gz: d287bb0bd73efd04435de7374b8293d03bc2507caaec0926b696dcfbc47a5231e4f6517cdcbd30edcdeb01f2e74c238eeea18f2496e4740da5c7a3083e64cd54
7
- data.tar.gz: d3176f06cf949c9d010963e63f70b469cfe14f5d9475ba9771d10b9c7602d9c70450fa327c0f1d4aa2919376089b67a9822f28ae5891c867fc898b9457a0a5a7
6
+ metadata.gz: 48c5022eb2c24ba397fb3ba2fee56333325c2635dfb81fa7b8189e75c9e35aa415a751c2ea15180c210140784f967e1b8d24a4df833ce1f1b65f321871089ea7
7
+ data.tar.gz: c236ddd899a4566f5c445ffb965bbbf4dd51b98dc0f0c5bdec380bc7e43f2ca5c10394aa31cca3970dd2e66254261eb91c595cccaf74e4c0520891b1f56b7beb
@@ -15,7 +15,7 @@ module FinApps
15
15
  user_token = '4JZmhcHVf3ODRJ9TMKF7N/1sHDY3M5Q49A9ToAy+TDE='
16
16
 
17
17
  client.user_credentials!(user_identifier, user_token)
18
- budget, error_messages = client.cashflows.show('2015-01-01T00:00:00Z', '2015-01-31T00:00:00Z')
18
+ budget, error_messages = client.cashflows.show('2015-02-01T00:00:00Z', '2015-02-28T00:00:00Z')
19
19
  if budget.present?
20
20
  puts
21
21
  puts 'cashflow results:'
@@ -37,13 +37,13 @@ module FinApps
37
37
  raise 'Summary result-set for cashflow is not present.' if summary.nil?
38
38
  raise 'Summary result-set for cashflow is not a hash.' unless summary.respond_to?(:key?)
39
39
 
40
- raise 'Total in-flow value for cashflow is not present.' unless summary.key?('inflow')
41
- cashflow.total_inflow_amount = summary['inflow']
40
+ raise 'Total income (inflow) value for cashflow is not present.' unless summary.key?('inflow')
41
+ cashflow.total_income_amount = summary['inflow']
42
42
 
43
- raise 'Total out-flow value for cashflow is not present.' unless summary.key?('outflow')
44
- cashflow.total_outflow_amount = summary['outflow']
43
+ raise 'Total expenses (outflow) value for cashflow is not present.' unless summary.key?('outflow')
44
+ cashflow.total_expenses_amount = summary['outflow']
45
45
 
46
- raise 'Total left-over value for cashflow is not present.' unless summary.key?('diff')
46
+ raise 'Total left-over (diff) value for cashflow is not present.' unless summary.key?('diff')
47
47
  cashflow.total_leftover_amount = summary['diff']
48
48
 
49
49
  categories = extract_value(result, 'details')
@@ -86,11 +86,11 @@ module FinApps
86
86
 
87
87
  class Cashflow < FinApps::REST::Resource
88
88
  attr_accessor :start_date, :end_date,
89
- :total_inflow_amount, :total_outflow_amount, :total_leftover_amount, :details
89
+ :total_income_amount, :total_expenses_amount, :total_leftover_amount, :details
90
90
  end
91
91
 
92
92
  class CashflowDetail < FinApps::REST::Resource
93
- attr_accessor :category_id, :inflow_amount, :outflow_amount, :leftover_amount
93
+ attr_accessor :category_id, :income_amount, :expenses_amount, :leftover_amount
94
94
  end
95
95
 
96
96
  end
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.16.0.pre'
2
+ VERSION = '0.16.1.pre'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0.pre
4
+ version: 0.16.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor