Permalink
Browse files

optional param

  • Loading branch information...
Chris Duesing
Chris Duesing committed Feb 21, 2012
1 parent 01d231c commit 3041b387b12536e8bddbf88a9c5216b49074bca4
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/gmail/mailbox.rb
  2. +1 −1 lib/gmail/message.rb
View
@@ -24,7 +24,7 @@ def to_s
end
def all
- @gmail.imap.fetch('1:100 FULL').collect do |response| ##{@gmail.uid_next}
+ @gmail.imap.fetch('1:100 FULL').collect do |response| # #{@gmail.uid_next}
uid = response.attr['UID']
body = response.attr['BODY']
messages[uid] ||= Message.new(@gmail, self, uid, body)
View
@@ -1,6 +1,6 @@
module GmailBase
class Message
- def initialize(gmail, mailbox, uid, body)
+ def initialize(gmail, mailbox, uid, body=nil)
@gmail = gmail
@mailbox = mailbox
@uid = uid

0 comments on commit 3041b38

Please sign in to comment.