Sha256: 61b4253a9da25eaf7624f867ce6cb639e831786ddc8a869b15ff7608834ea89a
Contents?: true
Size: 895 Bytes
Versions: 4
Compression:
Stored size: 895 Bytes
Contents
# frozen_string_literal: true require 'time' require_relative 'model' module Redd module Models # Represents a message in the new modmail. class ModmailMessage < Model # @!attribute [r] id # @return [String] the message id property :id # @!attribute [r] body # @return [String] the html conversation body property :body # @!attribute [r] markdown_body # @return [String] the body in markdown form property :markdown_body, from: :bodyMarkdown # @!attribute [r] author # @return [Object] FIXME: do shit property :author # @!attribute [r] internal? # @return [Boolean] whether the message is internal property :internal?, from: :isInternal # @!attribute [r] date # @return [Time] the message date property :date, with: ->(t) { Time.parse(t) } end end end
Version data entries
4 entries across 4 versions & 2 rubygems