apibanca-client 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11196cbf7114b0d8f73ee499966ccce88bbac70
4
- data.tar.gz: 83c6061b12ba78d65e0092010f2460183f7d7867
3
+ metadata.gz: fcb97610baa36416d2e45ca5724c9a04c267d7b1
4
+ data.tar.gz: 0d770381ad175d77df111b5b5df047e6baf0e427
5
5
  SHA512:
6
- metadata.gz: c332c62906ff60196c88eef8b4ac11461b854ca01871496622b8cbdc61e7019a01065a7bbea834f508cf0142d90a46481cfb01e4a62bdfc240fdc46a0afeea23
7
- data.tar.gz: 814cbbb7f4399a44a358cb918c94b479255eb1942a8e2e5a046f09fed324152ecfcaf565428edf2f627d95e11309ec26fad27cb7c20e39b30926387403292b1a
6
+ metadata.gz: 447d0b75086f5e258442322b255c1a47fde48ae245746dda4142a137f3c115460ef27ce3f2331964151c072229035568e56aa9a9bca37b97180d3dd2237c8877
7
+ data.tar.gz: f0826f637ed2a2693c9d9685750f459b6d91610845439e560fba89f8fb203252eec0895974228d66e6851871e4b4f5a60fc1e8d2a650748fef7654f68e3fde50
@@ -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
- self.obj_bank = bank
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
- self.obj_client = client
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
- self.obj_bank = bank
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
@@ -1,5 +1,5 @@
1
1
  module Apibanca
2
2
  class Client
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5"
4
4
  end
5
- end
5
+ end
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.3
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-07 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler