Class: Callcredit::Client

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

Instance Method Summary collapse

Constructor Details

#initialize(config = nil) ⇒ Client

Returns a new instance of Client.



3
4
5
# File 'lib/callcredit/client.rb', line 3

def initialize(config = nil)
  @config = (config || Callcredit.config).clone
end

Instance Method Details

#bank_enhanced_check(check_data) ⇒ Object



12
13
14
15
# File 'lib/callcredit/client.rb', line 12

def bank_enhanced_check(check_data)
  check = Checks::BankEnhanced.new(self)
  check.perform(check_data)
end

#bank_standard_check(check_data) ⇒ Object



7
8
9
10
# File 'lib/callcredit/client.rb', line 7

def bank_standard_check(check_data)
  check = Checks::BankStandard.new(self)
  check.perform(check_data)
end

#configObject



27
28
29
# File 'lib/callcredit/client.rb', line 27

def config
  @config
end

#id_enhanced_check(check_data) ⇒ Object



17
18
19
20
# File 'lib/callcredit/client.rb', line 17

def id_enhanced_check(check_data)
  check = Checks::IDEnhanced.new(self)
  check.perform(check_data)
end

#perform_check(check_types, check_data) ⇒ Object



22
23
24
25
# File 'lib/callcredit/client.rb', line 22

def perform_check(check_types, check_data)
  request = Request.new(connection, @config)
  request.perform(check_types, check_data)
end