lib/zuora/client.rb in zuora-ruby-0.6.0 vs lib/zuora/client.rb in zuora-ruby-0.7.0
- old
+ new
@@ -1,14 +1,16 @@
+# frozen_string_literal: true
+
require 'faraday'
require 'faraday_middleware'
require 'nokogiri'
module Zuora
class Client
attr_accessor :session_token
- INSTANCE_VARIABLE_LOG_BLACKLIST = [:@username, :@password].freeze
+ INSTANCE_VARIABLE_LOG_BLACKLIST = %i[@username @password].freeze
def initialize(username, password, sandbox = true)
@username = username
@password = password
@sandbox = sandbox
@@ -18,10 +20,10 @@
def call!(*args)
soap_client.call!(*args)
end
# Delegate REST methods to REST client
- [:post, :put, :get, :delete].each do |method|
+ %i[post put get delete].each do |method|
define_method(method) do |*args|
rest_client.send(method, *args)
end
end