Class: PapyTools::Joueur

Inherits:
Object
  • Object
show all
Defined in:
lib/papy-tools/tournoi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Joueur

Returns a new instance of Joueur.



56
57
58
# File 'lib/papy-tools/tournoi.rb', line 56

def initialize(&block)
    block.call(self) if block
end

Instance Attribute Details

#categorieObject

Returns the value of attribute categorie.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def categorie
  @categorie
end

#clubObject

Returns the value of attribute club.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def club
  @club
end

#departagesObject

Returns the value of attribute departages.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def departages
  @departages
end

#eloObject

Returns the value of attribute elo.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def elo
  @elo
end

#ligueObject

Returns the value of attribute ligue.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def ligue
  @ligue
end

#nb_rondesObject

Returns the value of attribute nb_rondes.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def nb_rondes
  @nb_rondes
end

#nomObject

Returns the value of attribute nom.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def nom
  @nom
end

#paysObject

Returns the value of attribute pays.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def pays
  @pays
end

#placeObject

Returns the value of attribute place.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def place
  @place
end

#ptsObject

Returns the value of attribute pts.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def pts
  @pts
end

#rondesObject

Returns the value of attribute rondes.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def rondes
  @rondes
end

#titreObject

Returns the value of attribute titre.



41
42
43
# File 'lib/papy-tools/tournoi.rb', line 41

def titre
  @titre
end

Instance Method Details

#to_aObject



60
61
62
# File 'lib/papy-tools/tournoi.rb', line 60

def to_a
    [@rondes.map{|r| r.resultat_condense()},@place,@titre,@nom,@elo,@categorie,@pays,@ligue,@pts,@departages,@club]
end