mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Remove Rubocop inline directives
This commit is contained in:
parent
66dd10302d
commit
c44f3df7f5
28 changed files with 5 additions and 169 deletions
|
@ -43,7 +43,6 @@ module Depp
|
|||
)
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
def find_by_id(id)
|
||||
data = info_xml(id)
|
||||
|
||||
|
@ -76,7 +75,6 @@ module Depp
|
|||
statuses: data.css('status').map { |s| [s['s'], s.text] }
|
||||
)
|
||||
end
|
||||
# rubocop:enable Metrics/AbcSize
|
||||
|
||||
def user=(user)
|
||||
@user = user
|
||||
|
@ -173,8 +171,6 @@ module Depp
|
|||
handle_errors(data)
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
def update_attributes(params)
|
||||
self.ident_country_code = params[:ident_country_code]
|
||||
self.ident_type = params[:ident_type]
|
||||
|
@ -223,8 +219,6 @@ module Depp
|
|||
data = Depp::Contact.user.request(update_xml)
|
||||
handle_errors(data)
|
||||
end
|
||||
# rubocop:enbale Metrics/AbcSize
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
def delete
|
||||
delete_xml = Contact.epp_xml.delete(
|
||||
|
@ -238,9 +232,6 @@ module Depp
|
|||
handle_errors(data)
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/CyclomaticComplexity
|
||||
# rubocop:disable Style/NegatedIf
|
||||
# rubocop:disable Style/RedundantSelf
|
||||
def extension_xml(action)
|
||||
xml = { _anonymus: [] }
|
||||
|
||||
|
@ -259,9 +250,6 @@ module Depp
|
|||
xml[:_anonymus] << legal if legal.present?
|
||||
xml
|
||||
end
|
||||
# rubocop:enable Metrics/CyclomaticComplexity
|
||||
# rubocop:enable Style/NegatedIf
|
||||
# rubocop:enable Style/RedundantSelf
|
||||
|
||||
def ident_xml
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue