Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove unnecessary require statements #337

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/asm.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class ASM
def initialize(group_id: nil, groups_to_display: nil)
Expand Down
1 change: 0 additions & 1 deletion lib/sendgrid/helpers/mail/attachment.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'json'
require 'base64'

module SendGrid
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/bcc_settings.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class BccSettings
def initialize(enable: nil, email: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/bypass_list_management.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class BypassListManagement
def initialize(enable: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/category.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Category
attr_accessor :name
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/click_tracking.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class ClickTracking
def initialize(enable: nil, enable_text: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/content.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Content

Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/custom_arg.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class CustomArg
def initialize(key: nil, value: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/email.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Email

Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/footer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Footer
def initialize(enable: nil, text: nil, html: nil)
Expand Down
4 changes: 1 addition & 3 deletions lib/sendgrid/helpers/mail/ganalytics.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Ganalytics
def initialize(enable: nil, utm_source: nil, utm_medium: nil, utm_term: nil, utm_content: nil, utm_campaign: nil, utm_name: nil)
Expand Down Expand Up @@ -71,4 +69,4 @@ def to_json(*)
}.delete_if { |_, value| value.to_s.strip == '' }
end
end
end
end
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/header.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Header
def initialize(key: nil, value: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/mail.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Build the request body for the v3/mail/send endpoint
# Please see the examples/helpers/mail/example.rb for a demonstration of usage
require 'json'

module SendGrid
class Mail

Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/mail_settings.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class MailSettings
def initialize
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/open_tracking.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class OpenTracking
def initialize(enable: nil, substitution_tag: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/personalization.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Personalization

Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/section.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Section
def initialize(key: nil, value: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/spam_check.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class SpamCheck
def initialize(enable: nil, threshold: nil, post_to_url: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/subscription_tracking.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class SubscriptionTracking
def initialize(enable: nil, text: nil, html: nil, substitution_tag: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/substitution.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Substitution
def initialize(key: nil, value: nil)
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/mail/tracking_settings.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class TrackingSettings
def initialize
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/stats/metrics.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class Metrics
attr_reader :blocks, :bounce_drops,
Expand Down
2 changes: 0 additions & 2 deletions lib/sendgrid/helpers/stats/stats_response.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'json'

module SendGrid
class StatsResponse
def initialize(args)
Expand Down