Class: Voicemail::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/voicemail/matcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(entered, actual) ⇒ Matcher

Returns a new instance of Matcher.



6
7
8
9
# File 'lib/voicemail/matcher.rb', line 6

def initialize(entered, actual)
  @entered = entered.to_s
  @actual  = actual.to_s
end

Instance Method Details

#matches?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/voicemail/matcher.rb', line 11

def matches?
  @entered == @actual
end