Class: InterApi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/inter_api.rb

Class Method Summary collapse

Class Method Details

.new(**args) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/inter_api.rb', line 32

def self.new **args
  if args.delete(:test_mode)
    ClientTeste.new(**args)
  else
    ClientProduction.new(**args)
  end
end