Sha256: 221f429cdf7478ae73d03e1c536d52bfd365a11bda226b9fa3ce6c83b50632e1
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
# frozen_string_literal: true module EmailInquire class Response attr_accessor :email, :replacement, :status def hint!(domain: nil) self.status = :hint old_name, _old_domain = email.split("@") self.replacement = "#{old_name}@#{domain}" if domain end def hint? status == :hint end def invalid! self.status = :invalid end def invalid? status == :invalid end def status? !status.nil? end def valid! self.status = :valid end def valid? status == :valid end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
email_inquire-0.9.0 | lib/email_inquire/response.rb |
email_inquire-0.8.0 | lib/email_inquire/response.rb |
email_inquire-0.7.0 | lib/email_inquire/response.rb |