Skip to content
Open
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: 1 addition & 1 deletion lib/adyen/services/recurring.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(client, version = DEFAULT_VERSION)
end

def recurring_api
@recurring_api ||= Adyen::LegacyRecurringApi.new(@client, @version)
@recurring_api ||= Adyen::RecurringApi.new(@client, @version)
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/adyen/services/recurring/recurring_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Adyen
# Ref: https://openapi-generator.tech
#
# Do not edit the class manually.
class LegacyRecurringApi < Service
class RecurringApi < Service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Service parent class already defines attr_accessor for :service and :version. The attr_accessor on the next line is therefore redundant and can be removed for cleaner code.

attr_accessor :service, :version

def initialize(client, version = DEFAULT_VERSION)
Expand Down
Loading