class Rasam::RationalChoice

Value Object

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