Class: MailAuth::Spf::Term

Inherits:
Data
  • Object
show all
Defined in:
lib/mailauth/spf/record.rb

Overview

target is already macro-expanded at parse time, so a broken macro is caught even when the mechanism it sits in is never reached.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(qualifier:, mechanism:, target: nil, network: nil, cidr4: nil, cidr6: nil) ⇒ Term

Returns a new instance of Term.



6
7
8
# File 'lib/mailauth/spf/record.rb', line 6

def initialize(qualifier:, mechanism:, target: nil, network: nil, cidr4: nil, cidr6: nil)
  super
end

Instance Attribute Details

#cidr4Object (readonly)

Returns the value of attribute cidr4

Returns:

  • (Object)

    the current value of cidr4



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def cidr4
  @cidr4
end

#cidr6Object (readonly)

Returns the value of attribute cidr6

Returns:

  • (Object)

    the current value of cidr6



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def cidr6
  @cidr6
end

#mechanismObject (readonly)

Returns the value of attribute mechanism

Returns:

  • (Object)

    the current value of mechanism



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def mechanism
  @mechanism
end

#networkObject (readonly)

Returns the value of attribute network

Returns:

  • (Object)

    the current value of network



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def network
  @network
end

#qualifierObject (readonly)

Returns the value of attribute qualifier

Returns:

  • (Object)

    the current value of qualifier



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def qualifier
  @qualifier
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



5
6
7
# File 'lib/mailauth/spf/record.rb', line 5

def target
  @target
end