Sha256: bf56e1b3e09e50ecd280e0e6eea85ba50dd3995cd84c85efad2c8cc3e280392d
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
module NeonRAW module Objects class Thing # Methods for things that appear in your inbox. module Inboxable # Changes the read status of a PM. # @!method mark_as_read # @!method mark_as_unread %w[read unread].each do |type| define_method :"mark_as_#{type}" do params = { id: name } @client.request_data("/api/#{type}_message", :post, params) end end # Add a text reply to a comment/private message. # @!method reply(text) # @param text [String] The text you want to reply with. def reply(text) params = { api_type: 'json', text: text, thing_id: name } @client.request_data('/api/comment', :post, params) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
NeonRAW-0.1.7 | lib/NeonRAW/objects/thing/inboxable.rb |