Class: Mailtrap::InboundForwardRule

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

Overview

Data Transfer Object for an inbound forward rule

Instance Attribute Summary collapse

Instance Attribute Details

#conditions ⇒ Array<InboundForwardRuleCondition> (readonly)

The rule conditions

Returns:



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

def conditions
  @conditions
end

#created_at ⇒ String (readonly)

Creation timestamp

Returns:

  • (String) —

    the current value of created_at



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

def created_at
  @created_at
end

#destinations ⇒ Array<InboundForwardRuleDestination> (readonly)

The rule destinations

Returns:



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

def destinations
  @destinations
end

#id ⇒ Integer (readonly)

The forward rule ID

Returns:

  • (Integer) —

    the current value of id



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

def id
  @id
end

#name ⇒ String (readonly)

The rule name

Returns:

  • (String) —

    the current value of name



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

def name
  @name
end

#updated_at ⇒ String (readonly)

Last update timestamp

Returns:

  • (String) —

    the current value of updated_at



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

def updated_at
  @updated_at
end