Class: RubyQuiz2::Selection
- Inherits:
-
Object
- Object
- RubyQuiz2::Selection
- Defined in:
- lib/ruby_quiz_2/selection.rb
Instance Attribute Summary collapse
-
#giftee ⇒ Object
readonly
Returns the value of attribute giftee.
-
#santa ⇒ Object
readonly
Returns the value of attribute santa.
Instance Method Summary collapse
-
#initialize(santa, giftee) ⇒ Selection
constructor
A new instance of Selection.
Constructor Details
#initialize(santa, giftee) ⇒ Selection
Returns a new instance of Selection.
6 7 8 |
# File 'lib/ruby_quiz_2/selection.rb', line 6 def initialize(santa, giftee) @santa, @giftee = santa, giftee end |
Instance Attribute Details
#giftee ⇒ Object (readonly)
Returns the value of attribute giftee.
4 5 6 |
# File 'lib/ruby_quiz_2/selection.rb', line 4 def giftee @giftee end |
#santa ⇒ Object (readonly)
Returns the value of attribute santa.
4 5 6 |
# File 'lib/ruby_quiz_2/selection.rb', line 4 def santa @santa end |