racked 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/racked.rb +10 -6
- data/racked.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/racked.rb
CHANGED
@@ -14,12 +14,12 @@ class Mailbox
|
|
14
14
|
def method_missing(method, *args)
|
15
15
|
#x = name.to_s.camelize(:lower)
|
16
16
|
x = method.to_s
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
#return @attributes[access_key] if(@attributes.keys.include?(access_key))
|
18
|
+
if(@attributes.keys.include?(x))
|
19
|
+
@attributes[x]
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
@@ -34,6 +34,10 @@ class Racked
|
|
34
34
|
@server.xml_format
|
35
35
|
end
|
36
36
|
|
37
|
+
def get_domain_info
|
38
|
+
response = @server.get '/customers/856863/domains/econetmail.com', @server.json_format
|
39
|
+
end
|
40
|
+
|
37
41
|
def get_mailboxes(size=50, offset=0)
|
38
42
|
#get customer list
|
39
43
|
response = @server.get '/customers/856863/domains/econetmail.com/rs/mailboxes/?size=#{size}&offset=#{offset}', @server.json_format
|
data/racked.gemspec
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 3
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Noto Modungwa
|
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
hash:
|
112
|
+
hash: 402408209
|
113
113
|
segments:
|
114
114
|
- 0
|
115
115
|
version: "0"
|