Class: Posthaste::MappingWarning

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



12
13
14
# File 'lib/posthaste/message_mapper.rb', line 12

def code
  @code
end

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



12
13
14
# File 'lib/posthaste/message_mapper.rb', line 12

def field
  @field
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



12
13
14
# File 'lib/posthaste/message_mapper.rb', line 12

def message
  @message
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/posthaste/message_mapper.rb', line 13

def to_s
  "#{field}: #{message}"
end