Skip to content

Commit

Permalink
Merge pull request #99 from maxmind/greg/fix-rubocop
Browse files Browse the repository at this point in the history
Do not unnecessarily call super with arguments
  • Loading branch information
ugexe authored May 28, 2024
2 parents 1172abc + e1ac1d6 commit 7499837
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/minfraud/model/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Address < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@distance_to_ip_location = get('distance_to_ip_location')
@is_in_ip_country = get('is_in_ip_country')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/credit_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CreditCard < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@brand = get('brand')
@country = get('country')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Device < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@confidence = get('confidence')
@id = get('id')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/disposition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Disposition < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@action = get('action')
@reason = get('reason')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Email < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@domain = Minfraud::Model::EmailDomain.new(get('domain'))
@first_seen = get('first_seen')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/email_domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class EmailDomain < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@first_seen = get('first_seen')
end
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Error < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@code = get('code')
@error = get('error')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/factors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Factors < Insights

# @!visibility private
def initialize(record, locales)
super(record, locales)
super

@subscores = Minfraud::Model::Subscores.new(get('subscores'))
end
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/geoip2_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GeoIP2Location < MaxMind::GeoIP2::Record::Location

# @!visibility private
def initialize(record)
super(record)
super

@local_time = get('local_time')
end
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Insights < Score

# @!visibility private
def initialize(record, locales)
super(record, locales)
super

@billing_address = Minfraud::Model::BillingAddress.new(
get('billing_address')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/ip_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class IPAddress < MaxMind::GeoIP2::Model::Insights
# @!visibility private
def initialize(record, locales)
if record
super(record, locales)
super
else
super({}, locales)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/ip_risk_reason.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class IPRiskReason < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@code = get('code')
@reason = get('reason')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/issuer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Issuer < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@name = get('name')
@phone_number = get('phone_number')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/score_ip_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ScoreIPAddress < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@risk = get('risk')
end
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/shipping_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ShippingAddress < Address

# @!visibility private
def initialize(record)
super(record)
super

@distance_to_billing_address = get('distance_to_billing_address')
@is_high_risk = get('is_high_risk')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/subscores.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Subscores < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@avs_result = get('avs_result')
@billing_address = get('billing_address')
Expand Down
2 changes: 1 addition & 1 deletion lib/minfraud/model/warning.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Warning < Abstract

# @!visibility private
def initialize(record)
super(record)
super

@code = get('code')
@warning = get('warning')
Expand Down

0 comments on commit 7499837

Please sign in to comment.