lib/racked.rb in racked-0.2.0 vs lib/racked.rb in racked-0.3.0

- old
+ new

@@ -12,16 +12,16 @@ end def method_missing(method, *args) #x = name.to_s.camelize(:lower) x = method.to_s -    #return @attributes[access_key] if(@attributes.keys.include?(access_key)) -   if(@attributes.keys.include?(x)) -     @attributes[x] -   else -     super -   end + #return @attributes[access_key] if(@attributes.keys.include?(access_key)) + if(@attributes.keys.include?(x)) + @attributes[x] + else + super + end end end class Racked @@ -30,9 +30,13 @@ def initialize #read config file @server = Server.new(MAIL_CFG["server"], MAIL_CFG["version_prefix"], MAIL_CFG["user_key"], MAIL_CFG["secret_hash"]) @server.xml_format + end + + def get_domain_info + response = @server.get '/customers/856863/domains/econetmail.com', @server.json_format end def get_mailboxes(size=50, offset=0) #get customer list response = @server.get '/customers/856863/domains/econetmail.com/rs/mailboxes/?size=#{size}&offset=#{offset}', @server.json_format \ No newline at end of file