finapps 0.2.14.pre → 0.3.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: 56dc4e73842111a88a77c6fcc82e4e85854ba08a
4
- data.tar.gz: 275db74211f32c2a8360d0995043d38d2b1d1cc0
3
+ metadata.gz: 4ccf0a8f8775de7bab90cda66c432c4d66c058b4
4
+ data.tar.gz: ee9e07bddd96047647c91dbb22728386ea6a03af
5
5
  SHA512:
6
- metadata.gz: 1066cc101fa0dbdc64faa69d722c22ce587b198d73176f6f25e733ec62c79c80a836eae517ee34c91fe5c94c7b0b3dc707f70dd29e2df681b592716f27819d5d
7
- data.tar.gz: 54b69d91f5f3c290b3030662fe344d801e0003648552bdda3a599a41cfedcc3b4ebe5bc4d5ed2a6b7b3afb282b814d8ec990362a6a9ad363cb56617a76e0c84a
6
+ metadata.gz: 4dae3f91021e9ed6651d09f01fe79d21f1e88dd0e9e8494a09c9d474ad2fbb6cca1108a0abb8ed6321c3d052d2dfcbead59dbb7728a395570075a514cea616b4
7
+ data.tar.gz: e96ab5a5d05c40d16860aae45f9e87ca71bd5568aa15e5ea0e51b33e77ae2bf2bd16d9709be5367cc3f9aec4515cbf5c738ac5f1a1a0a2ded5ba1dba567a0ae3
@@ -0,0 +1,24 @@
1
+ module FinApps
2
+ module REST
3
+ class Categories < FinApps::REST::Resources
4
+ include FinApps::REST::Defaults
5
+
6
+ # @return [Array<Hash>, Array<String>]
7
+ def list
8
+ logger.debug "##{__method__.to_s} => Started"
9
+
10
+ end_point = Defaults::END_POINTS[:categories_list]
11
+ logger.debug "##{__method__.to_s} => end_point: #{end_point}"
12
+
13
+ path = end_point
14
+ logger.debug "##{__method__.to_s} => path: #{path}"
15
+
16
+ categories, error_messages = @client.send(path, :get)
17
+
18
+ logger.debug "##{__method__.to_s} => Completed"
19
+ return categories, error_messages
20
+ end
21
+
22
+ end
23
+ end
24
+ end
@@ -38,7 +38,10 @@ module FinApps
38
38
 
39
39
  :accounts_show => 'accounts/:account_id/show',
40
40
 
41
- :transactions_search => 'transactions/search'
41
+ :transactions_search => 'transactions/search',
42
+
43
+ :categories_list => 'categories'
44
+
42
45
  }.freeze
43
46
 
44
47
  end
@@ -1,3 +1,3 @@
1
1
  module FinApps
2
- VERSION = '0.2.14.pre'
2
+ VERSION = '0.3.1.pre'
3
3
  end
data/lib/finapps.rb CHANGED
@@ -21,6 +21,7 @@ require 'finapps/rest/users'
21
21
  require 'finapps/rest/institutions'
22
22
  require 'finapps/rest/user_institutions'
23
23
  require 'finapps/rest/transactions'
24
+ require 'finapps/rest/categories'
24
25
 
25
26
  require 'finapps/rest/connection'
26
27
  require 'finapps/rest/client'
@@ -67,12 +67,6 @@ module FinApps
67
67
  end
68
68
  end
69
69
 
70
- describe '.accounts' do
71
- it 'returns a Accounts object' do
72
- expect(@client.accounts).to be_an_instance_of(FinApps::REST::Accounts)
73
- end
74
- end
75
-
76
70
  describe '.transactions' do
77
71
  it 'returns a Transactions object' do
78
72
  expect(@client.transactions).to be_an_instance_of(FinApps::REST::Transactions)
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.2.14.pre
4
+ version: 0.3.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: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2014-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -197,6 +197,7 @@ files:
197
197
  - lib/finapps/middleware/api_token.rb
198
198
  - lib/finapps/middleware/raise_http_exceptions.rb
199
199
  - lib/finapps/middleware/response_logger.rb
200
+ - lib/finapps/rest/categories.rb
200
201
  - lib/finapps/rest/client.rb
201
202
  - lib/finapps/rest/connection.rb
202
203
  - lib/finapps/rest/defaults.rb