class Strutta::Judging

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/judging.rb, line 10
def initialize(id = nil, game)
  @id = id
  @game = game
  @root_path = 'judging'
end

Public Instance Methods

get(params = {}) click to toggle source

GET request for Judging (no ID required)

@return [Hash] Parsed body of the API response

# File lib/strutta-api/judging.rb, line 19
def get(params = {})
  @game.verify_no_id(@id)
  @game.get(params, @root_path)
end