Class: SmashRuby::Set

Inherits:
Object
  • Object
show all
Defined in:
lib/smash_ruby/set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(player_one, player_two, tournament) ⇒ Set



5
6
7
8
9
# File 'lib/smash_ruby/set.rb', line 5

def initialize(player_one, player_two, tournament)
  @player_one = player_one
  @player_two = player_two
  @tournament = tournament
end

Instance Attribute Details

#player_oneObject (readonly)

Returns the value of attribute player_one.



3
4
5
# File 'lib/smash_ruby/set.rb', line 3

def player_one
  @player_one
end

#player_twoObject (readonly)

Returns the value of attribute player_two.



3
4
5
# File 'lib/smash_ruby/set.rb', line 3

def player_two
  @player_two
end

#tournamentObject (readonly)

Returns the value of attribute tournament.



3
4
5
# File 'lib/smash_ruby/set.rb', line 3

def tournament
  @tournament
end

#winnerObject (readonly)

Returns the value of attribute winner.



3
4
5
# File 'lib/smash_ruby/set.rb', line 3

def winner
  @winner
end