Class: Posthaste::MappingWarning
- Inherits:
-
Struct
- Object
- Struct
- Posthaste::MappingWarning
- Defined in:
- lib/posthaste/message_mapper.rb
Overview
Something this gem had to change to express the message. Reported on
mail.posthaste_result.warnings and passed to the on_warning hook, so you
find out on the first send rather than in a support ticket.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#field ⇒ Object
Returns the value of attribute field.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
12 13 14 |
# File 'lib/posthaste/message_mapper.rb', line 12 def code @code end |
#field ⇒ Object
Returns the value of attribute field
12 13 14 |
# File 'lib/posthaste/message_mapper.rb', line 12 def field @field end |
#message ⇒ Object
Returns the value of attribute message
12 13 14 |
# File 'lib/posthaste/message_mapper.rb', line 12 def @message end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/posthaste/message_mapper.rb', line 13 def to_s "#{field}: #{}" end |