Class: MailAuth::Spf::Context
- Inherits:
-
Data
- Object
- Data
- MailAuth::Spf::Context
- Defined in:
- lib/mailauth/spf.rb
Overview
What a macro can expand to. domain is whose record we're reading now,
which an include or redirect moves away from the sender's.
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#helo ⇒ Object
readonly
Returns the value of attribute helo.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
Instance Method Summary collapse
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain
50 51 52 |
# File 'lib/mailauth/spf.rb', line 50 def domain @domain end |
#helo ⇒ Object (readonly)
Returns the value of attribute helo
50 51 52 |
# File 'lib/mailauth/spf.rb', line 50 def helo @helo end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip
50 51 52 |
# File 'lib/mailauth/spf.rb', line 50 def ip @ip end |
#sender ⇒ Object (readonly)
Returns the value of attribute sender
50 51 52 |
# File 'lib/mailauth/spf.rb', line 50 def sender @sender end |
Instance Method Details
#for_domain(domain) ⇒ Object
59 60 61 |
# File 'lib/mailauth/spf.rb', line 59 def for_domain(domain) with(domain: domain) end |
#local ⇒ Object
51 52 53 |
# File 'lib/mailauth/spf.rb', line 51 def local sender.split("@", 2).first end |
#sender_domain ⇒ Object
55 56 57 |
# File 'lib/mailauth/spf.rb', line 55 def sender_domain sender.split("@", 2).last end |