Module: Nylas::ReadUnreadMethods
Instance Method Summary collapse
- #mark_as_read! ⇒ Object
- #mark_as_unread! ⇒ Object
- #star! ⇒ Object
- #unstar! ⇒ Object
- #update_param!(param, value) ⇒ Object
Instance Method Details
#mark_as_read! ⇒ Object
9 10 11 |
# File 'lib/mixins.rb', line 9 def mark_as_read! update_param!(:unread, false) end |
#mark_as_unread! ⇒ Object
13 14 15 |
# File 'lib/mixins.rb', line 13 def mark_as_unread! update_param!(:unread, true) end |
#star! ⇒ Object
17 18 19 |
# File 'lib/mixins.rb', line 17 def star! update_param!(:starred, true) end |
#unstar! ⇒ Object
21 22 23 |
# File 'lib/mixins.rb', line 21 def unstar! update_param!(:starred, false) end |
#update_param!(param, value) ⇒ Object
3 4 5 6 7 |
# File 'lib/mixins.rb', line 3 def update_param!(param, value) update('PUT', '', { param => value, }) end |