Class: Redd::Models::ModmailMessage

Inherits:
Model
  • Object
show all
Defined in:
lib/redd/models/modmail_message.rb

Overview

Represents a message in the new modmail.

Instance Attribute Summary collapse

Attributes inherited from Model

#client

Method Summary

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from Redd::Models::Model

Instance Attribute Details

#authorObject (readonly)

Returns FIXME: do shit.

Returns:

  • (Object)

    FIXME: do shit


24
# File 'lib/redd/models/modmail_message.rb', line 24

property :author

#bodyString (readonly)

Returns the html conversation body.

Returns:

  • (String)

    the html conversation body


16
# File 'lib/redd/models/modmail_message.rb', line 16

property :body

#dateTime (readonly)

Returns the message date.

Returns:

  • (Time)

    the message date


32
# File 'lib/redd/models/modmail_message.rb', line 32

property :date, with: ->(t) { Time.parse(t) }

#idString (readonly)

Returns the message id.

Returns:

  • (String)

    the message id


12
# File 'lib/redd/models/modmail_message.rb', line 12

property :id

#internal?Boolean (readonly)

Returns whether the message is internal.

Returns:

  • (Boolean)

    whether the message is internal


28
# File 'lib/redd/models/modmail_message.rb', line 28

property :internal?, from: :isInternal

#markdown_bodyString (readonly)

Returns the body in markdown form.

Returns:

  • (String)

    the body in markdown form


20
# File 'lib/redd/models/modmail_message.rb', line 20

property :markdown_body, from: :bodyMarkdown