mos-sdk 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mos-sdk.rb +4 -4
- data/lib/mos-sdk/base.rb +2 -2
- 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: 455d1131325499109ae500a832783420c65cb5e3
|
4
|
+
data.tar.gz: f54ef15c9b4fd39a55aa1933cde9d0117a9ce55c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6be66b8c213a809dadab92a00e8efdfc5c988a6c773d582a8f2be4eb7032007b2bf42502510ae433a216613ed185a0f51a294b188ebd8524d50645fe2f7430fd
|
7
|
+
data.tar.gz: b4c6d0405b982f9fb1b0c5c02b9a622ca25a0c1b6c8adfdd32f2687994fc15a9756cfb474adf2ee90a3156093f6dfd623e1c1f5330d64f0c1a23c90689944502
|
data/lib/mos-sdk.rb
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
$:.unshift File.join(File.dirname(__FILE__), '.', 'mos-sdk')
|
3
3
|
require 'base.rb'
|
4
4
|
|
5
|
-
module
|
6
|
-
class Client <
|
5
|
+
module MOS
|
6
|
+
class Client < MOS::Base
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
10
|
# 基类函数为Base,mos-sdk的实现类
|
11
|
-
class
|
11
|
+
class MOS::Client
|
12
12
|
# 构造函数
|
13
13
|
def initialize(access, secret, url, format='xml', timeout=300, debug=false)
|
14
14
|
super(access, secret, url, format, timeout, debug)
|
@@ -312,4 +312,4 @@ class Mos::Client
|
|
312
312
|
kwargs['TemplateId'] = tid
|
313
313
|
self.request('DeleteTemplate', *kwargs)
|
314
314
|
end
|
315
|
-
end
|
315
|
+
end
|
data/lib/mos-sdk/base.rb
CHANGED
@@ -8,12 +8,12 @@ require "rubygems"
|
|
8
8
|
require "crack"
|
9
9
|
require "erb"
|
10
10
|
include ERB::Util
|
11
|
-
module
|
11
|
+
module MOS
|
12
12
|
class Base
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
class
|
16
|
+
class MOS::Base
|
17
17
|
attr_accessor :access, :secret, :url, :format, :timeout, :debug
|
18
18
|
|
19
19
|
# 基类初始化函数
|