cstock 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cstock/stock.rb +1 -1
- data/lib/cstock/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 615f343f858805af4578b63414fc2d905ba4b3ae
|
4
|
+
data.tar.gz: 762a099ff333152217feded200c7c6beed4001eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a045d83ef63dd6967b514b226507d5a0ab2acb923e64ad9bc617472c20ae9970bf293746cb1d8a990e363b414bc893347a1f3dbe615cb6f3d6a04a2755640e9f
|
7
|
+
data.tar.gz: f95b08b8a0966901a09812ab547cc6681ba20ba63aa7560673a6abdddb7a0583d3259f0d069676326af910d2b8de2130dc01af31da2fb9914f43b6234a3b0399
|
data/lib/cstock/stock.rb
CHANGED
@@ -41,7 +41,7 @@ module CStock
|
|
41
41
|
def self.refresh(stock)
|
42
42
|
quote(stock.code) do |data|
|
43
43
|
FIELDS[1..-1].each_with_index do |field, index|
|
44
|
-
stock.
|
44
|
+
stock.send("#{field}=".to_sym, (data[index].nil? ? nil : data[index]))
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/cstock/version.rb
CHANGED