Class: ActionRecipient::Configuration::Whitelist

Inherits:
Object
  • Object
show all
Defined in:
lib/action_recipient/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressesObject



38
39
40
# File 'lib/action_recipient/configuration.rb', line 38

def addresses
  @addresses ||= []
end

#domainsObject



34
35
36
# File 'lib/action_recipient/configuration.rb', line 34

def domains
  @domains ||= []
end

Instance Method Details

#[](key) ⇒ Object



30
31
32
# File 'lib/action_recipient/configuration.rb', line 30

def [](key)
  public_send(key) if %i[domains addresses].include? key
end