From: Park Heesob Date: 2005-08-17T10:03:47+09:00 Subject: Re: [ANN] gmailer 0.0.1 (plain text) Hi, >From: "Berger, Daniel" >Reply-To: ruby-talk@ruby-lang.org >To: ruby-talk@ruby-lang.org (ruby-talk ML) >Subject: Re: [ANN] gmailer 0.0.1 (plain text) >Date: Tue, 16 Aug 2005 23:27:16 +0900 > > >Some API suggestions: > >First, get rid of camel case! That, or at least provide aliases, e.g. >gmail.fetch_box vs gmail.fetchBox. > >Second, since you must call setLoginInfo in order to do just about >anything, then I would recommend allowing users to pass that information >to the constructor as a shortcut. So, your constructor would look like >this: > >def initialize(name, password, charset='UTF-8') > ... > setLoginInfo(name, password) >end > >Let's folks skip a step. :) > >Regards, > >Dan I accepted your suggestions:) You can use either camel case name or _ style name(ex:fetchBox or fetch_box) also you can initialize gmailer with login info gmail = GMailer.new(name,pwd,charset='UTF-8') Regards, Park Heesob