Class: Challonge::Match

Inherits:
API
  • Object
show all
Defined in:
lib/challonge/match.rb

Overview

the only attributes that will save are: scores_csv, winner_id

Instance Method Summary collapse

Methods inherited from API

key, key=, username, username=

Instance Method Details

#createObject

not implemented by API



15
# File 'lib/challonge/match.rb', line 15

def create; end

#destroyObject

not implemented by API



18
# File 'lib/challonge/match.rb', line 18

def destroy; end

#tournamentObject



6
7
8
# File 'lib/challonge/match.rb', line 6

def tournament
  Challonge::Tournament.find(self.prefix_options[:tournament_id])
end

#tournament=(tournament) ⇒ Object



10
11
12
# File 'lib/challonge/match.rb', line 10

def tournament=(tournament)
  self.prefix_options[:tournament_id] = tournament.id
end