Class: Dnsimple::Struct::EmailForward

Inherits:
Base
  • Object
show all
Defined in:
lib/dnsimple/struct/email_forward.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Dnsimple::Struct::Base

Instance Attribute Details

#activeBoolean

Returns True if the email forward is active, false otherwise.

Returns:

  • (Boolean)

    True if the email forward is active, false otherwise.



28
29
30
# File 'lib/dnsimple/struct/email_forward.rb', line 28

def active
  @active
end

#alias_emailString

Returns The receiving email recipient.

Returns:

  • (String)

    The receiving email recipient.



22
23
24
# File 'lib/dnsimple/struct/email_forward.rb', line 22

def alias_email
  @alias_email
end

#created_atString

Returns When the email forward was created in DNSimple.

Returns:

  • (String)

    When the email forward was created in DNSimple.



31
32
33
# File 'lib/dnsimple/struct/email_forward.rb', line 31

def created_at
  @created_at
end

#destination_emailString

Returns The email recipient the messages are delivered to.

Returns:

  • (String)

    The email recipient the messages are delivered to.



25
26
27
# File 'lib/dnsimple/struct/email_forward.rb', line 25

def destination_email
  @destination_email
end

#domain_idInteger

Returns The associated domain ID.

Returns:

  • (Integer)

    The associated domain ID.



11
12
13
# File 'lib/dnsimple/struct/email_forward.rb', line 11

def domain_id
  @domain_id
end

#fromString

Deprecated.

use #alias_email instead

Returns The “local part” of the originating email address. Anything to the left of the @ symbol.

Returns:

  • (String)

    The “local part” of the originating email address. Anything to the left of the @ symbol.



15
16
17
# File 'lib/dnsimple/struct/email_forward.rb', line 15

def from
  @from
end

#idInteger

Returns The email forward ID in DNSimple.

Returns:

  • (Integer)

    The email forward ID in DNSimple.



8
9
10
# File 'lib/dnsimple/struct/email_forward.rb', line 8

def id
  @id
end

#toString

Deprecated.

use #destination_email instead

Returns The full email address to forward to.

Returns:

  • (String)

    The full email address to forward to.



19
20
21
# File 'lib/dnsimple/struct/email_forward.rb', line 19

def to
  @to
end

#updated_atString

Returns When the email forward was last updated in DNSimple.

Returns:

  • (String)

    When the email forward was last updated in DNSimple.



34
35
36
# File 'lib/dnsimple/struct/email_forward.rb', line 34

def updated_at
  @updated_at
end