class AWS::Record::Errors

def []= attribute_name, message = 'is invalid'

Returns:
  • (String) - Returns the message.

Parameters:
  • message (String) -- ('is invalid') The error message (should
  • attribute_name (String, Symbol) -- The name of the attribute
def []= attribute_name, message = 'is invalid'
  if has_key?(attribute_name)
    self[attribute_name] << message
  else
    super(attribute_name, [message])
  end
  self[attribute_name]
end