Sha256: 1af86a0081fb6022f5db240ad7ec1aa8540da55fbacaebd0553c40906a188734
Contents?: true
Size: 344 Bytes
Versions: 4
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true module Redd module Models # Things that can be reported (except users). module Reportable # Report the object. # @param reason [String] the report reason def report(reason) client.post('/api/report', thing_id: read_attribute(:name), reason: reason) end end end end
Version data entries
4 entries across 4 versions & 2 rubygems