Class: RedditKit::ModeratorAction
- Defined in:
- lib/redditkit/moderator_action.rb
Overview
A class representing actions taken by moderators of subreddits.
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#mod ⇒ Object
(also: #moderator_username)
readonly
Returns the value of attribute mod.
-
#mod_id36 ⇒ Object
(also: #moderator_identifier)
readonly
Returns the value of attribute mod_id36.
-
#sub_id36 ⇒ Object
(also: #subreddit_identifier)
readonly
Returns the value of attribute sub_id36.
-
#subreddit ⇒ Object
(also: #subreddit_name)
readonly
Returns the value of attribute subreddit.
Attributes inherited from Thing
Attributes inherited from Base
Method Summary
Methods inherited from Thing
Methods inherited from Base
Constructor Details
This class inherits a constructor from RedditKit::Base
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
6 7 8 |
# File 'lib/redditkit/moderator_action.rb', line 6 def action @action end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/redditkit/moderator_action.rb', line 7 def details @details end |
#mod ⇒ Object (readonly) Also known as: moderator_username
Returns the value of attribute mod.
8 9 10 |
# File 'lib/redditkit/moderator_action.rb', line 8 def mod @mod end |
#mod_id36 ⇒ Object (readonly) Also known as: moderator_identifier
Returns the value of attribute mod_id36.
9 10 11 |
# File 'lib/redditkit/moderator_action.rb', line 9 def mod_id36 @mod_id36 end |
#sub_id36 ⇒ Object (readonly) Also known as: subreddit_identifier
Returns the value of attribute sub_id36.
11 12 13 |
# File 'lib/redditkit/moderator_action.rb', line 11 def sub_id36 @sub_id36 end |
#subreddit ⇒ Object (readonly) Also known as: subreddit_name
Returns the value of attribute subreddit.
10 11 12 |
# File 'lib/redditkit/moderator_action.rb', line 10 def subreddit @subreddit end |