Class: Mailtrap::InboundForwardOutcome

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/inbound_forward_outcome.rb

Overview

Data Transfer Object for an inbound forward outcome

Instance Attribute Summary collapse

Instance Attribute Details

#destination ⇒ String (readonly)

The destination address

Returns:

  • (String) —

    the current value of destination



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def destination
  @destination
end

#message_id ⇒ String? (readonly)

The forwarded message ID

Returns:

  • (String, nil) —

    the current value of message_id



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def message_id
  @message_id
end

#reason ⇒ String? (readonly)

The rejection reason

Returns:

  • (String, nil) —

    the current value of reason



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def reason
  @reason
end

#rule_id ⇒ Integer (readonly)

The forward rule ID

Returns:

  • (Integer) —

    the current value of rule_id



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def rule_id
  @rule_id
end

#rule_name ⇒ String? (readonly)

The forward rule name

Returns:

  • (String, nil) —

    the current value of rule_name



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def rule_name
  @rule_name
end

#status ⇒ String (readonly)

forwarded or rejected

Returns:

  • (String) —

    the current value of status



12
13
14
# File 'lib/mailtrap/inbound_forward_outcome.rb', line 12

def status
  @status
end