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

#categorie ⇒ Object

Returns the value of attribute categorie.



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

def categorie
  @categorie
end

#club ⇒ Object

Returns the value of attribute club.



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

def club
  @club
end

#departages ⇒ Object

Returns the value of attribute departages.



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

def departages
  @departages
end

#elo ⇒ Object

Returns the value of attribute elo.



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

def elo
  @elo
end

#ligue ⇒ Object

Returns the value of attribute ligue.



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

def ligue
  @ligue
end

#nb_rondes ⇒ Object

Returns the value of attribute nb_rondes.



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

def nb_rondes
  @nb_rondes
end

#nom ⇒ Object

Returns the value of attribute nom.



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

def nom
  @nom
end

#pays ⇒ Object

Returns the value of attribute pays.



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

def pays
  @pays
end

#place ⇒ Object

Returns the value of attribute place.



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

def place
  @place
end

#pts ⇒ Object

Returns the value of attribute pts.



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

def pts
  @pts
end

#rondes ⇒ Object

Returns the value of attribute rondes.



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

def rondes
  @rondes
end

#titre ⇒ Object

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_a ⇒ Object



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