class Strutta::Moderation
Entries
belong to a Strutta::Games
object Instance methods found in Strutta::APIObject
Public Class Methods
new(id = nil, game)
click to toggle source
Initializes the Strutta::Entries
object
@param id [Integer, nil] Entry id @param game [Strutta::Games] Master Strutta::Games
object @return [Strutta::Points] instantiated Strutta::Points
object
# File lib/strutta-api/moderation.rb, line 10 def initialize(id = nil, game) @id = id @game = game @root_path = 'moderation' end
Public Instance Methods
get(params = {})
click to toggle source
GET request for Moderation
(no ID required)
@return [Hash] Parsed body of the API
response
# File lib/strutta-api/moderation.rb, line 19 def get(params = {}) @game.verify_no_id(@id) @game.get(params, @root_path) end