def deliver!(mail)
      mandrill_api = Mandrill::API.new(settings[:api_key])
      message = Message.new(mail)
      @response = if message.template
                    mandrill_api.messages.send_template(
                      message.template,
                      message.template_content,
                      message.to_json,
                      MandrillDm.configuration.async,
                      message.ip_pool || MandrillDm.configuration.ip_pool,
                      message.send_at
                    )
                  else
                    mandrill_api.messages.send(
                      message.to_json,
                      MandrillDm.configuration.async,
                      message.ip_pool || MandrillDm.configuration.ip_pool,
                      message.send_at
                    )
                  end
    end
def deliver!(mail)
      mandrill_api = Mandrill::API.new(settings[:api_key])
      message = Message.new(mail)
      @response = if message.template
                    mandrill_api.messages.send_template(
                      message.template,
                      message.template_content,
                      message.to_json,
                      MandrillDm.configuration.async,
                      message.ip_pool || MandrillDm.configuration.ip_pool,
                      message.send_at
                    )
                  else
                    mandrill_api.messages.send(
                      message.to_json,
                      MandrillDm.configuration.async,
                      message.ip_pool || MandrillDm.configuration.ip_pool,
                      message.send_at
                    )
                  end
    end
def deliver! ( mail ) mandrill_api = Mandrill :: API . new ( settings [ :api_key ] ) message = Message . new ( mail ) @response = if message . template mandrill_api . messages . send_template ( message . template , message . template_content , message . to_json , MandrillDm . configuration . async , message . ip_pool || MandrillDm . configuration . ip_pool , message . send_at ) else mandrill_api . messages . send ( message . to_json , MandrillDm . configuration . async , message . ip_pool || MandrillDm . configuration . ip_pool , message . send_at ) end end
rubocop:disable Metrics/MethodLength
 rubocop:disable Metrics/AbcSize
rubocop : disable Metrics / MethodLength rubocop : disable Metrics / AbcSize