kuaidi100_rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kuaidi100_rails/version.rb +1 -1
- data/lib/kuaidi100_rails.rb +5 -0
- 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: 0721c8450a8aff6ba1353ed0659ddaa6584d08b6
|
4
|
+
data.tar.gz: 5dac334a516973e0221efeb7569c8519faa1cc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab3da56a6ee76bd86d754fa19509337e411994f24af3bfdbaa475a5065d27d60cca6b75d1309cde6b6521baf2540a39f5dfdafd0d8a050401a6b900c53f4b8a
|
7
|
+
data.tar.gz: 3f4d609f272214d873e73dff0577b5f2aeb0d7cdb4307fcdff9cd512cb37018ff2c3730c05762e412577ce64e548087b48109c775380d5b6458ea88e17d9f388
|
data/lib/kuaidi100_rails.rb
CHANGED
@@ -56,6 +56,11 @@ module Kuaidi100Rails
|
|
56
56
|
EXPRESS_KEYWORDS.select { |k, v| cn_name.to_s.downcase.include?(v.to_s.downcase) }.keys[0].to_s
|
57
57
|
end
|
58
58
|
|
59
|
+
#en_code to cn_name
|
60
|
+
def company_name(code_str)
|
61
|
+
EXPRESS_KEYWORDS[code_str.to_s.to_sym]
|
62
|
+
end
|
63
|
+
|
59
64
|
#subscribe express
|
60
65
|
#===Parameters==
|
61
66
|
#+com+ company code
|