Class: Gmailish::Flagger

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

Constant Summary collapse

DELETED =
:Deleted
UNREAD =
:Seen

Instance Method Summary collapse

Constructor Details

#initialize(account, uid) ⇒ Flagger

Returns a new instance of Flagger.



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

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

Instance Method Details

#deleteObject



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

def delete
  flag(DELETED)
end

#unreadObject



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

def unread
  flag(UNREAD)
end