Sha256: 617fc7e77973798641249e52f64b7aed00ecb26f379c8251a0456c172821e576
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
module Strutta # Rounds belong to a Strutta::Games object # Instance methods found in Strutta::APIObject class Rounds < APIObject # 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 def initialize(id = nil, game) @id = id @game = game @root_path = "rounds/#{@id}" @no_id_error = Errors::ROUND_ID_REQUIRED end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
strutta-api-1.0.3.1 | lib/strutta-api/rounds.rb |
strutta-api-1.0.2 | lib/strutta-api/rounds.rb |
strutta-api-1.0.1 | lib/strutta-api/rounds.rb |