sbif 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/sbif.rb +3 -2
- metadata +1 -1
data/History.txt
CHANGED
data/lib/sbif.rb
CHANGED
@@ -4,7 +4,7 @@ require 'date'
|
|
4
4
|
|
5
5
|
class SBIF
|
6
6
|
|
7
|
-
VERSION = "0.2"
|
7
|
+
VERSION = "0.2.1"
|
8
8
|
SITE = "http://api.sbif.cl/api-sbif/recursos"
|
9
9
|
INDICATORS = %w(uf utm dolar euro)
|
10
10
|
|
@@ -16,7 +16,8 @@ class SBIF
|
|
16
16
|
|
17
17
|
INDICATORS.each do |currency|
|
18
18
|
method_name = currency.to_sym
|
19
|
-
define_method(method_name) do |
|
19
|
+
define_method(method_name) do |*args|
|
20
|
+
date = args[0] || {}
|
20
21
|
get_data(currency, date)
|
21
22
|
end
|
22
23
|
end
|