Class: Gmailish::Labeler

Inherits:
Object
  • Object
show all
Defined in:
lib/gmailish/labeler.rb

Constant Summary collapse

TRANSFERED =
'Transfered'
ARCHIVE =
'[Gmail]/All Mail'

Instance Method Summary collapse

Constructor Details

#initialize(account, uid) ⇒ Labeler

Returns a new instance of Labeler.



6
7
8
9
# File 'lib/gmailish/labeler.rb', line 6

def initialize(, uid)
  @account = 
  @uid = uid
end

Instance Method Details

#all_mailObject



15
16
17
# File 'lib/gmailish/labeler.rb', line 15

def all_mail
  label(ARCHIVE)
end

#transferedObject



11
12
13
# File 'lib/gmailish/labeler.rb', line 11

def transfered
  label(TRANSFERED)
end