mxn_banks 0.1.0 → 0.1.1

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: c95b6d9a6bdeca2c43702b67e8b59e3bc03c3e5d
4
- data.tar.gz: 339ea828585320f7035492a57d08231a3f461ff1
3
+ metadata.gz: a9b04bfd104221f20485349730896da8fea6f765
4
+ data.tar.gz: 44e8aba1fd5554629beeba15eeaf656f626bd12b
5
5
  SHA512:
6
- metadata.gz: bdeeec14dbbddb0935e66e4c59c28747c6ea6f2df39128b485325ecd9af20d7cf059d95bee7e60ce31583179857e89ca4968e35cf47175e9ccd042b025af3119
7
- data.tar.gz: 2f2bcad9157a15fd2a9cd33bffd72f7c9f546c07f330a78162ec14b99b7e0570d720f53db7e0b64833320a28b9f87f74680966ef8c2d3e10c84e04c254ddc12c
6
+ metadata.gz: 97d08a5f0315edc5b3e0bc247aa9196afa30e24cc01f1f337dd50cf06635758f19dc66b1dc37e8c9d29fa43b3d9a5540acef01384ca767bc34e21449b791d765
7
+ data.tar.gz: 55153aba3380536ddde7198d487bffaa358ff5f7b60c5912809734111f548644d1a3bdced1415ba3187822801e2f838c8f93f6cc202040f366828d0136515c9e
@@ -1,9 +1,11 @@
1
- class Bank
2
- attr_reader :name, :number, :abreviate
1
+ module MxnBanks
2
+ class Bank
3
+ attr_reader :name, :number, :abreviate
3
4
 
4
- def initialize(args)
5
- @name = args[:name]
6
- @number = args[:number]
7
- @abreviate = args[:abreviate]
5
+ def initialize(args)
6
+ @name = args[:name]
7
+ @number = args[:number]
8
+ @abreviate = args[:abreviate]
9
+ end
8
10
  end
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module MxnBanks
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/mxn_banks.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "mxn_banks/version"
2
- autoload :Bank , 'mxn_banks/bank'
3
2
 
4
3
  module MxnBanks
4
+ autoload :Bank, 'mxn_banks/bank'
5
5
  def self.from_iban(num)
6
6
  a = to_hash.select { |b| b[:number] == num.slice(0, 3) }
7
7
  Bank.new(a.first)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxn_banks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aldosolorzano