Class: RubyQuiz2::Selection

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_quiz_2/selection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#gifteeObject (readonly)

Returns the value of attribute giftee.



4
5
6
# File 'lib/ruby_quiz_2/selection.rb', line 4

def giftee
  @giftee
end

#santaObject (readonly)

Returns the value of attribute santa.



4
5
6
# File 'lib/ruby_quiz_2/selection.rb', line 4

def santa
  @santa
end