Class: RedditKit::PrivateMessage

Inherits:
Thing
  • Object
show all
Includes:
Creatable
Defined in:
lib/redditkit/private_message.rb

Overview

A class representing a private message.

Instance Attribute Summary collapse

Attributes inherited from Thing

#id, #kind

Attributes inherited from Base

#attributes

Method Summary

Methods included from Creatable

#created_at

Methods inherited from Thing

#==, #full_name

Methods inherited from Base

#[], attr_reader, #initialize

Constructor Details

This class inherits a constructor from RedditKit::Base

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



10
11
12
# File 'lib/redditkit/private_message.rb', line 10

def author
  @author
end

#bodyObject (readonly)

Returns the value of attribute body.



11
12
13
# File 'lib/redditkit/private_message.rb', line 11

def body
  @body
end

#body_htmlObject (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

#contextObject (readonly)

Returns the value of attribute context.



13
14
15
# File 'lib/redditkit/private_message.rb', line 13

def context
  @context
end

#destObject (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_messageObject (readonly)

Returns the value of attribute first_message.



15
16
17
# File 'lib/redditkit/private_message.rb', line 15

def first_message
  @first_message
end

#first_message_nameObject (readonly)

Returns the value of attribute first_message_name.



16
17
18
# File 'lib/redditkit/private_message.rb', line 16

def first_message_name
  @first_message_name
end

#newObject (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_idObject (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

#repliesObject (readonly)

Returns the value of attribute replies.



19
20
21
# File 'lib/redditkit/private_message.rb', line 19

def replies
  @replies
end

#subjectObject (readonly)

Returns the value of attribute subject.



20
21
22
# File 'lib/redditkit/private_message.rb', line 20

def subject
  @subject
end

#subredditObject (readonly)

Returns the value of attribute subreddit.



21
22
23
# File 'lib/redditkit/private_message.rb', line 21

def subreddit
  @subreddit
end

#was_commentObject (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