Class: RedditKit::ModeratorAction

Inherits:
Thing
  • Object
show all
Defined in:
lib/redditkit/moderator_action.rb

Overview

A class representing actions taken by moderators of subreddits.

Instance Attribute Summary collapse

Attributes inherited from Thing

#id, #kind

Attributes inherited from Base

#attributes

Method Summary

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

#actionObject (readonly)

Returns the value of attribute action.



6
7
8
# File 'lib/redditkit/moderator_action.rb', line 6

def action
  @action
end

#detailsObject (readonly)

Returns the value of attribute details.



7
8
9
# File 'lib/redditkit/moderator_action.rb', line 7

def details
  @details
end

#modObject (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_id36Object (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_id36Object (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

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