class Rounders::Matchers::CC
Attributes
pattern[R]
Public Class Methods
new(pattern)
click to toggle source
# File lib/rounders/matchers/cc.rb, line 6 def initialize(pattern) @pattern = pattern end
Public Instance Methods
match(message)
click to toggle source
# File lib/rounders/matchers/cc.rb, line 10 def match(message) return if message.cc.nil? matches = message.cc.map do |address| address.match(pattern) end matches.compact end