refactored base codeclimate warnings

This commit is contained in:
olegphenomenon 2022-01-24 15:50:20 +02:00
parent cda56c735f
commit a8f1f885de
4 changed files with 3 additions and 8 deletions

View file

@ -21,7 +21,7 @@ module EisBilling
registrar = invoice.buyer
bank.create_activity(registrar, invoice)
render status: 200, json: { status: 'ok' }
render status: 200, json: { status: :ok }
end
private

View file

@ -13,8 +13,7 @@ class Registrar
end
end
def show
end
def show; end
def cancel
@invoice.cancel

View file

@ -34,8 +34,7 @@ module EisBilling
'Accept' => TOKEN
}
res = http.post(invoice_generator_url, json_obj.to_json, headers)
res
http.post(invoice_generator_url, json_obj.to_json, headers)
end
def invoice_generator_url

View file

@ -8,8 +8,5 @@ module EisBilling
# => "PLEASE CREATE INVOICE"
TOKEN = 'Bearer WA9UvDmzR9UcE5rLqpWravPQtdS8eDMAIynzGdSOTw==--9ZShwwij3qmLeuMJ--NE96w2PnfpfyIuuNzDJTGw=='.freeze
BASE_URL = ENV['eis_billing_system_base_url']
protected
end
end