class Strutta::Rounds

Rounds 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::Rounds object

@param id [Integer, nil] Entry id @param game [Strutta::Games] Master Strutta::Games object @return [Strutta::Rounds] instantiated Strutta::Rounds object

# File lib/strutta-api/rounds.rb, line 10
def initialize(id = nil, game)
  @id = id
  @game = game
  @root_path = "rounds/#{@id}"
  @no_id_error = Errors::ROUND_ID_REQUIRED
end