Class: SmashRuby::Set
- Inherits:
-
Object
- Object
- SmashRuby::Set
- Defined in:
- lib/smash_ruby/set.rb
Instance Attribute Summary collapse
-
#player_one ⇒ Object
readonly
Returns the value of attribute player_one.
-
#player_two ⇒ Object
readonly
Returns the value of attribute player_two.
-
#tournament ⇒ Object
readonly
Returns the value of attribute tournament.
-
#winner ⇒ Object
readonly
Returns the value of attribute winner.
Instance Method Summary collapse
-
#initialize(player_one, player_two, tournament) ⇒ Set
constructor
A new instance of Set.
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_one ⇒ Object (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_two ⇒ Object (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 |
#tournament ⇒ Object (readonly)
Returns the value of attribute tournament.
3 4 5 |
# File 'lib/smash_ruby/set.rb', line 3 def tournament @tournament end |
#winner ⇒ Object (readonly)
Returns the value of attribute winner.
3 4 5 |
# File 'lib/smash_ruby/set.rb', line 3 def winner @winner end |