etracking 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/etracking/client.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d91b7a47ffe364bb62921f0fb13d1bb1ea1c66e375783749663fcb663af718d
|
4
|
+
data.tar.gz: bce631d4879eb5d015fe784a9223d709f833a7b353526371fbd93939421d986a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d774e0c518a0a7132a7ae90aaad31099c2953b817a2ebfa7cbe77a6d0b17466f074f3df7a39e9e63500bcf8fe7ac964c986cd2cc9fcc85231935f745cab92a9
|
7
|
+
data.tar.gz: f0f19815f8a771141d852d750f316f76b65c550e6b50c74d34f4dd9d053a825df7448734dfb58c0ce230b0fe580ab63d643512c338f90fb3cc4365858ffdd86f
|
data/lib/etracking/client.rb
CHANGED
@@ -9,12 +9,11 @@ module Etracking
|
|
9
9
|
# config.api_key = ENV["etracking_api_key"]
|
10
10
|
# config.key_secret = ENV["etracking_key_secret"]
|
11
11
|
# config.language = ENV["etracking_language"] || 'TH'
|
12
|
-
# config.thailand_post_api_key = ENV['thailand_post_api_key']
|
13
12
|
# end
|
14
13
|
|
15
14
|
class Client
|
16
15
|
# @return [String]
|
17
|
-
attr_accessor :api_key, :key_secret, :language
|
16
|
+
attr_accessor :api_key, :key_secret, :language
|
18
17
|
|
19
18
|
# Initialize a new client.
|
20
19
|
#
|
@@ -91,11 +90,11 @@ module Etracking
|
|
91
90
|
api('shopee_express', tracking_number)
|
92
91
|
end
|
93
92
|
|
94
|
-
def thailand_post(tracking_number)
|
95
|
-
|
93
|
+
# def thailand_post(tracking_number)
|
94
|
+
# thailand_post_api_key
|
96
95
|
|
97
|
-
|
98
|
-
end
|
96
|
+
# api('thailand_post', tracking_number)
|
97
|
+
# end
|
99
98
|
|
100
99
|
def payload_tracking_number(tracking_number)
|
101
100
|
{
|