apibanca-client 0.0.3 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb97610baa36416d2e45ca5724c9a04c267d7b1
|
4
|
+
data.tar.gz: 0d770381ad175d77df111b5b5df047e6baf0e427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 447d0b75086f5e258442322b255c1a47fde48ae245746dda4142a137f3c115460ef27ce3f2331964151c072229035568e56aa9a9bca37b97180d3dd2237c8877
|
7
|
+
data.tar.gz: f0826f637ed2a2693c9d9685750f459b6d91610845439e560fba89f8fb203252eec0895974228d66e6851871e4b4f5a60fc1e8d2a650748fef7654f68e3fde50
|
data/lib/apibanca/client/bank.rb
CHANGED
@@ -73,6 +73,14 @@ class Apibanca::Bank < Apibanca::ProxyBase
|
|
73
73
|
"(Banco #{id}) #{name} / #{user} / #{account}"
|
74
74
|
end
|
75
75
|
|
76
|
+
def buc
|
77
|
+
"#{name} / User [#{user}] / Cuenta [#{account}]"
|
78
|
+
end
|
79
|
+
|
80
|
+
def buc_short
|
81
|
+
"#{name}/#{user}/#{account}"
|
82
|
+
end
|
83
|
+
|
76
84
|
def load_routines! recursive=true
|
77
85
|
self.routines.map! { |r| Apibanca::Routine.new(self.obj_client, self, r) }
|
78
86
|
self.routines.each { |r| r.refresh! } if recursive
|
@@ -14,6 +14,10 @@ class Apibanca::Deposit < Apibanca::ProxyBase
|
|
14
14
|
|
15
15
|
def initialize(client, bank, source_hash = nil, default = nil, &block)
|
16
16
|
super(client, source_hash, default, &block)
|
17
|
-
|
17
|
+
@obj_bank = bank
|
18
|
+
end
|
19
|
+
|
20
|
+
def obj_bank
|
21
|
+
@obj_bank
|
18
22
|
end
|
19
23
|
end
|
@@ -19,6 +19,10 @@ class Apibanca::ProxyBase < Hashie::Mash
|
|
19
19
|
|
20
20
|
def initialize(client, source_hash = nil, default = nil, &block)
|
21
21
|
super(source_hash, default, &block)
|
22
|
-
|
22
|
+
@obj_client = client
|
23
|
+
end
|
24
|
+
|
25
|
+
def obj_client
|
26
|
+
@obj_client
|
23
27
|
end
|
24
28
|
end
|
@@ -40,7 +40,11 @@ class Apibanca::Routine < Apibanca::ProxyBase
|
|
40
40
|
|
41
41
|
def initialize(client, bank, source_hash = nil, default = nil, &block)
|
42
42
|
super(client, source_hash, default, &block)
|
43
|
-
|
43
|
+
@obj_bank = bank
|
44
|
+
end
|
45
|
+
|
46
|
+
def obj_bank
|
47
|
+
@obj_bank
|
44
48
|
end
|
45
49
|
|
46
50
|
class ScheduleParams < Hashie::Dash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apibanca-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Marambio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|