class Rasam::RationalChoice
Value Object
-
Pair - Consists of two options
-
Choice - Selected option from a given pair
-
Criteria - Rationale for the preference. Why the choice was made?
Attributes
choice[R]
criteria[R]
pair[R]
Public Class Methods
new(pair, choice, criteria)
click to toggle source
# File lib/rasam.rb, line 11 def initialize(pair, choice, criteria) @choice = choice @criteria = criteria @pair = pair end
Public Instance Methods
to_s()
click to toggle source
# File lib/rasam.rb, line 17 def to_s "You selected #{@choice} because of #{@criteria} for #{@pair}" end