Method: MList::List#subscriber
- Defined in:
- lib/mlist/list.rb
#subscriber(email_address) ⇒ Object
A list must answer the subscriber who’s email address is that of the one provided. The default implementation will pick the first instance that answers subscriber.rfc5322_email == email_address. Your implementation should probably select just one record.
144 145 146 |
# File 'lib/mlist/list.rb', line 144 def subscriber(email_address) subscribers.detect {|s| s.rfc5322_email == email_address} end |