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 +4 -4
- data/lib/finapps/rest/categories.rb +24 -0
- data/lib/finapps/rest/defaults.rb +4 -1
- data/lib/finapps/version.rb +1 -1
- data/lib/finapps.rb +1 -0
- data/spec/rest/client_spec.rb +0 -6
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ccf0a8f8775de7bab90cda66c432c4d66c058b4
|
4
|
+
data.tar.gz: ee9e07bddd96047647c91dbb22728386ea6a03af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/finapps/version.rb
CHANGED
data/lib/finapps.rb
CHANGED
data/spec/rest/client_spec.rb
CHANGED
@@ -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.
|
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-
|
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
|