Exception: Spreewald::UnsupportedEmailHeader
- Inherits:
-
StandardError
- Object
- StandardError
- Spreewald::UnsupportedEmailHeader
- Defined in:
- lib/spreewald_support/unsupported_email_header.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(header, value) ⇒ UnsupportedEmailHeader
constructor
A new instance of UnsupportedEmailHeader.
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 = " 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
#header ⇒ Object (readonly)
Returns the value of attribute header.
5 6 7 |
# File 'lib/spreewald_support/unsupported_email_header.rb', line 5 def header @header end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/spreewald_support/unsupported_email_header.rb', line 5 def value @value end |