style(rubocop): Lint/MissingSuper

This commit is contained in:
Adam Cooke
2024-02-12 09:55:15 +00:00
parent be97f43308
commit 4674e63b5f
4 changed files with 7 additions and 2 deletions
@@ -49,6 +49,7 @@ class Postal::Errors::AuthenticationError < Postal::Error
attr_reader :error attr_reader :error
def initialize(error) def initialize(error)
super()
@error = error @error = error
end end
+2
View File
@@ -111,6 +111,7 @@ module Mail
# Handle attached emails as attachments # Handle attached emails as attachments
class AttachmentsList < Array class AttachmentsList < Array
# rubocop:disable Lint/MissingSuper
def initialize(parts_list) def initialize(parts_list)
@parts_list = parts_list @parts_list = parts_list
@content_disposition_type = "attachment" @content_disposition_type = "attachment"
@@ -119,6 +120,7 @@ module Mail
end.flatten.compact.each { |a| self << a } end.flatten.compact.each { |a| self << a }
self self
end end
# rubocop:enable Lint/MissingSuper
end end
+1
View File
@@ -4,6 +4,7 @@ module Postal
class HTTPSender < Sender class HTTPSender < Sender
def initialize(endpoint, options = {}) def initialize(endpoint, options = {})
super()
@endpoint = endpoint @endpoint = endpoint
@options = options @options = options
@log_id = Nifty::Utils::RandomString.generate(length: 8).upcase @log_id = Nifty::Utils::RandomString.generate(length: 8).upcase
+1
View File
@@ -6,6 +6,7 @@ module Postal
class SMTPSender < Sender class SMTPSender < Sender
def initialize(domain, source_ip_address, options = {}) def initialize(domain, source_ip_address, options = {})
super()
@domain = domain @domain = domain
@source_ip_address = source_ip_address @source_ip_address = source_ip_address
@options = options @options = options