Sha256: 86987810d3667ba13cce12b6b28ab45fce53b4682daeb319d2a1fe789040c258
Contents?: true
Size: 674 Bytes
Versions: 2
Compression:
Stored size: 674 Bytes
Contents
module Querinator class Query def initialize (args) @question = args[:question] @answer = args[:answer] @times_correct = args[:times_correct] @times_seen = args[:times_seen] end def pose @question end def is_correct?(response) response == @answer ? TRUE : FALSE end def answer @answer end def times_correct @times_correct end def times_correct=(value) @times_correct = value end def times_seen @times_seen end def times_seen=(value) @times_seen = value end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
querinator-0.0.2 | lib/querinator/query.rb |
querinator-0.0.1 | lib/querinator/query.rb |