Class: Strutta::Rounds
Overview
Rounds belong to a Strutta::Games object Instance methods found in Strutta::APIObject
Instance Attribute Summary
Attributes inherited from APIObject
Instance Method Summary collapse
-
#initialize(id = nil, game) ⇒ Strutta::Rounds
constructor
Initializes the Strutta::Rounds object.
Methods inherited from APIObject
#all, #create, #delete, #get, #method_disabled, #update
Constructor Details
#initialize(id = nil, game) ⇒ Strutta::Rounds
Initializes the Strutta::Rounds object
10 11 12 13 14 15 |
# 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 |