Exception: Spreewald::UnsupportedEmailHeader

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spreewald_support/unsupported_email_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, value) ⇒ UnsupportedEmailHeader

Returns a new instance of UnsupportedEmailHeader.



7
8
9
10
11
12
13
14
# File 'lib/spreewald_support/unsupported_email_header.rb', line 7

def initialize(header, value)
  @header, @value = header, value
  error_message = "    It looks like you're trying to match against an unsupported header \"\#{header}\".\n    The following headers are supported: \#{supported_headers_list}\n  MESSAGE\n  super(error_message)\nend\n".strip_heredoc

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



5
6
7
# File 'lib/spreewald_support/unsupported_email_header.rb', line 5

def header
  @header
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/spreewald_support/unsupported_email_header.rb', line 5

def value
  @value
end