Sha256: 1b00f4b8c3ca873155b6bd363274f2c2ca8a7b9b8ab5bfd8546c1ea90aea8a9b
Contents?: true
Size: 842 Bytes
Versions: 3
Compression:
Stored size: 842 Bytes
Contents
module Strutta # Entries belong to a Strutta::Games object # Instance methods found in Strutta::APIObject class Moderation < APIObject # 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 def initialize(id = nil, game) @id = id @game = game @root_path = 'moderation' end # GET request for Moderation (no ID required) # # @return [Hash] Parsed body of the API response def get(params = {}) @game.verify_no_id(@id) @game.get(params, @root_path) end # Disbled methods alias_method :all, :method_disabled alias_method :update, :method_disabled alias_method :delete, :method_disabled end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
strutta-api-1.0.3.1 | lib/strutta-api/moderation.rb |
strutta-api-1.0.2 | lib/strutta-api/moderation.rb |
strutta-api-1.0.1 | lib/strutta-api/moderation.rb |