Class: RedditKit::PrivateMessage
- Includes:
- Creatable
- Defined in:
- lib/redditkit/private_message.rb
Overview
A class representing a private message.
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#body_html ⇒ Object
readonly
Returns the value of attribute body_html.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#dest ⇒ Object
(also: #recipient)
readonly
Returns the value of attribute dest.
-
#first_message ⇒ Object
readonly
Returns the value of attribute first_message.
-
#first_message_name ⇒ Object
readonly
Returns the value of attribute first_message_name.
-
#new ⇒ Object
(also: #unread?)
readonly
Returns the value of attribute new.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
#replies ⇒ Object
readonly
Returns the value of attribute replies.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#subreddit ⇒ Object
readonly
Returns the value of attribute subreddit.
-
#was_comment ⇒ Object
readonly
Returns the value of attribute was_comment.
Attributes inherited from Thing
Attributes inherited from Base
Method Summary
Methods included from Creatable
Methods inherited from Thing
Methods inherited from Base
Constructor Details
This class inherits a constructor from RedditKit::Base
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
10 11 12 |
# File 'lib/redditkit/private_message.rb', line 10 def @author end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
11 12 13 |
# File 'lib/redditkit/private_message.rb', line 11 def body @body end |
#body_html ⇒ Object (readonly)
Returns the value of attribute body_html.
12 13 14 |
# File 'lib/redditkit/private_message.rb', line 12 def body_html @body_html end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
13 14 15 |
# File 'lib/redditkit/private_message.rb', line 13 def context @context end |
#dest ⇒ Object (readonly) Also known as: recipient
Returns the value of attribute dest.
14 15 16 |
# File 'lib/redditkit/private_message.rb', line 14 def dest @dest end |
#first_message ⇒ Object (readonly)
Returns the value of attribute first_message.
15 16 17 |
# File 'lib/redditkit/private_message.rb', line 15 def @first_message end |
#first_message_name ⇒ Object (readonly)
Returns the value of attribute first_message_name.
16 17 18 |
# File 'lib/redditkit/private_message.rb', line 16 def @first_message_name end |
#new ⇒ Object (readonly) Also known as: unread?
Returns the value of attribute new.
17 18 19 |
# File 'lib/redditkit/private_message.rb', line 17 def new @new end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
18 19 20 |
# File 'lib/redditkit/private_message.rb', line 18 def parent_id @parent_id end |
#replies ⇒ Object (readonly)
Returns the value of attribute replies.
19 20 21 |
# File 'lib/redditkit/private_message.rb', line 19 def replies @replies end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
20 21 22 |
# File 'lib/redditkit/private_message.rb', line 20 def subject @subject end |
#subreddit ⇒ Object (readonly)
Returns the value of attribute subreddit.
21 22 23 |
# File 'lib/redditkit/private_message.rb', line 21 def subreddit @subreddit end |
#was_comment ⇒ Object (readonly)
Returns the value of attribute was_comment.
22 23 24 |
# File 'lib/redditkit/private_message.rb', line 22 def was_comment @was_comment end |