Class: HashComparator::Emails::Parser
- Inherits:
-
Object
- Object
- HashComparator::Emails::Parser
- Defined in:
- lib/hash_comparator/emails/parser.rb
Instance Attribute Summary collapse
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(emails, options) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(emails, options) ⇒ Parser
Returns a new instance of Parser.
8 9 10 11 |
# File 'lib/hash_comparator/emails/parser.rb', line 8 def initialize(emails, ) @emails = emails @options = end |
Instance Attribute Details
#emails ⇒ Object
Returns the value of attribute emails.
13 14 15 |
# File 'lib/hash_comparator/emails/parser.rb', line 13 def emails @emails end |
#options ⇒ Object
Returns the value of attribute options.
13 14 15 |
# File 'lib/hash_comparator/emails/parser.rb', line 13 def @options end |
Class Method Details
.parse(emails, options = {}) ⇒ Object
4 5 6 |
# File 'lib/hash_comparator/emails/parser.rb', line 4 def self.parse(emails, = {}) new(emails, ).parse end |
Instance Method Details
#parse ⇒ Object
15 16 17 18 19 20 |
# File 'lib/hash_comparator/emails/parser.rb', line 15 def parse remove_usernames if [:remove_usernames] remove_generic_domains if [:remove_generic_domains] emails end |