Sha256: 97f251f6deb29e5a955de47e57b078fc965fade291554fdd9b423df626721985
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Redd module Models # Things that can be sent to a user's inbox. module Inboxable # Block the user that sent this item. def block @client.post('/api/block', id: get_attribute(:fullname)) end # Mark this thing as read. def mark_as_read @client.post('/api/read_message', id: get_attribute(:fullname)) end # Mark one or more messages as unread. def mark_as_unread @client.post('/api/unread_message', id: get_attribute(:fullname)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
redd-0.8.1 | lib/redd/models/inboxable.rb |
redd-0.8.0 | lib/redd/models/inboxable.rb |
redd-0.8.0.pre.2 | lib/redd/models/inboxable.rb |
redd-0.8.0.pre.1 | lib/redd/models/inboxable.rb |